diff --git a/.github/workflows/clippy_check.yml b/.github/workflows/clippy_check.yml index e6cc2c3dd03..2ed7dcd5685 100644 --- a/.github/workflows/clippy_check.yml +++ b/.github/workflows/clippy_check.yml @@ -15,4 +15,4 @@ jobs: uses: actions-rs/clippy-check@v1.0.7 with: token: ${{ github.token }} - args: --all-features + args: --all-features -- -D warnings diff --git a/sway-core/src/semantic_analysis/namespace.rs b/sway-core/src/semantic_analysis/namespace.rs index 8bfc69aeacb..7ac3e5c71f5 100644 --- a/sway-core/src/semantic_analysis/namespace.rs +++ b/sway-core/src/semantic_analysis/namespace.rs @@ -150,7 +150,7 @@ impl Namespace { } } } - self.symbols.insert(name.clone(), item.clone()); + self.symbols.insert(name, item); ok((), warnings, errors) }