mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
chore: satisfy clippy::multiple_bound_locations
This commit is contained in:
parent
0f751b147a
commit
b4193d50db
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user