mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
chore: satisfy clippy::multiple_bound_locations
This commit is contained in:
1 parent
0f751b147a
commit
b4193d50db
1 file changed
+2
-2
@@ -268,10 +268,10 @@ where
|
||||
/// the current scope to the root scope, returning `Some` when a variable is
|
||||
/// found or `None` if there doesn't exist a variable with `name` in any
|
||||
/// scope.
|
||||
pub fn lookup<Q: ?Sized>(&self, name: &Q) -> Option<&Var>
|
||||
pub fn lookup<Q>(&self, name: &Q) -> Option<&Var>
|
||||
where
|
||||
Name: std::borrow::Borrow<Q>,
|
||||
Q: std::hash::Hash + Eq,
|
||||
Q: std::hash::Hash + Eq + ?Sized,
|
||||
{
|
||||
// Iterate backwards trough the scopes and try to find the variable
|
||||
for scope in self.scopes[..self.cursor].iter().rev() {
|
||||
|
||||
Reference in new issue
Block a user