aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/rust_tidy.rs
diff options
context:
space:
mode:
authorlberrymage <mageelog@gmail.com>2019-12-21 12:44:34 -0900
committerlberrymage <mageelog@gmail.com>2019-12-21 12:44:35 -0900
commitcd9195056c7a83b44ed439ef607b94ed4824431d (patch)
tree3d60bc161b9553746290dfe6e785fda02143b131 /python/tidy/servo_tidy_tests/rust_tidy.rs
parentbac9903fbeed0a394a86c0091e727aada665433d (diff)
downloadservo-cd9195056c7a83b44ed439ef607b94ed4824431d.tar.gz
servo-cd9195056c7a83b44ed439ef607b94ed4824431d.zip
Add lint check for `&DomRoot<T>`
`&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
Diffstat (limited to 'python/tidy/servo_tidy_tests/rust_tidy.rs')
-rw-r--r--python/tidy/servo_tidy_tests/rust_tidy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy/servo_tidy_tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs
index 4b6c35b85cb..78b47a14401 100644
--- a/python/tidy/servo_tidy_tests/rust_tidy.rs
+++ b/python/tidy/servo_tidy_tests/rust_tidy.rs
@@ -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;