mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Add lint check for &DomRoot<T>
`&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
This commit is contained in:
parent
bac9903fbe
commit
cd9195056c
9 changed files with 13 additions and 13 deletions
|
@ -38,7 +38,7 @@ impl test {
|
|||
}
|
||||
}
|
||||
|
||||
fn test_fun2(y : &String, z : &Vec<f32>, r: &Root<isize>) -> () {
|
||||
fn test_fun2(y : &String, z : &Vec<f32>, r: &Root<isize>, s: &DomRoot<isize>) -> () {
|
||||
let x = true;
|
||||
x
|
||||
&& x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue