Skip to content

Commit b4193d5

Browse files
chore: satisfy clippy::multiple_bound_locations
1 parent 0f751b1 commit b4193d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

naga/src/front/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ where
268268
/// the current scope to the root scope, returning `Some` when a variable is
269269
/// found or `None` if there doesn't exist a variable with `name` in any
270270
/// scope.
271-
pub fn lookup<Q: ?Sized>(&self, name: &Q) -> Option<&Var>
271+
pub fn lookup<Q>(&self, name: &Q) -> Option<&Var>
272272
where
273273
Name: std::borrow::Borrow<Q>,
274-
Q: std::hash::Hash + Eq,
274+
Q: std::hash::Hash + Eq + ?Sized,
275275
{
276276
// Iterate backwards trough the scopes and try to find the variable
277277
for scope in self.scopes[..self.cursor].iter().rev() {

0 commit comments

Comments
 (0)