mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add inheritance-checking lint
This commit is contained in:
parent
7d65673561
commit
d761877ef6
9 changed files with 139 additions and 21 deletions
|
@ -240,3 +240,12 @@ impl<'a> EventMethods for JSRef<'a, Event> {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait EventHelpers {
|
||||
fn set_trusted(self, trusted: bool);
|
||||
}
|
||||
|
||||
impl<'a> EventHelpers for JSRef<'a, Event> {
|
||||
fn set_trusted(self, trusted: bool) {
|
||||
self.trusted.set(trusted);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue