Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLint for &Dom<T> arguments #25438
Open
Lint for &Dom<T> arguments #25438
Labels
Comments
|
I wonder if TreeSink could have a second associated type for HandleArg with a constraint that allows converting from Handle to HandleArg. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no benefit to using
&Dom<T>instead of&Tfunction arguments. However, when we tried to add that lint in #25354, we discoveredservo/components/script/dom/servoparser/mod.rs
Line 990 in 3b44218
servo/components/script/dom/servoparser/mod.rs
Line 996 in 3b44218