diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-04-16 11:10:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-16 11:10:35 +0200 |
| commit | ee32e7ad1ce26d4eebe601344e0343cfb9c8f9bd (patch) | |
| tree | e704cd3c622acbf9faca558dd808f284a7df78f3 /src/eval/mod.rs | |
| parent | 261b96da68890dd1054efb76a72ee997cb779bae (diff) | |
Clippy fixes (#581)
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 1b3c6ea3..68d8148f 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -1203,7 +1203,7 @@ impl ast::Pattern { return None; }; if let Some(ident) = ident { - vm.define(ident.clone(), sink.clone()); + vm.define(ident.clone(), sink); } i += sink_size as i64; Some(()) @@ -1217,7 +1217,7 @@ impl ast::Pattern { } } } - if i < value.len() as i64 { + if i < value.len() { bail!(self.span(), "too many elements to destructure"); } } |
