We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy::multiple_bound_locations
1 parent 0f751b1 commit b4193d5Copy full SHA for b4193d5
naga/src/front/mod.rs
@@ -268,10 +268,10 @@ where
268
/// the current scope to the root scope, returning `Some` when a variable is
269
/// found or `None` if there doesn't exist a variable with `name` in any
270
/// scope.
271
- pub fn lookup<Q: ?Sized>(&self, name: &Q) -> Option<&Var>
+ pub fn lookup<Q>(&self, name: &Q) -> Option<&Var>
272
where
273
Name: std::borrow::Borrow<Q>,
274
- Q: std::hash::Hash + Eq,
+ Q: std::hash::Hash + Eq + ?Sized,
275
{
276
// Iterate backwards trough the scopes and try to find the variable
277
for scope in self.scopes[..self.cursor].iter().rev() {
0 commit comments