diff --git a/.github/workflows/library_rust_tests.yml b/.github/workflows/library_rust_tests.yml index e41b6a5e4..c6bec70e6 100644 --- a/.github/workflows/library_rust_tests.yml +++ b/.github/workflows/library_rust_tests.yml @@ -51,7 +51,7 @@ jobs: - name: Setup Rust Toolchain for GitHub CI uses: actions-rust-lang/setup-rust-toolchain@v1 with: - components: rustfmt + components: rustfmt, clippy - name: Setup Dafny uses: ./mpl/.github/actions/setup_dafny @@ -94,6 +94,13 @@ jobs: CORES=$(node -e 'console.log(os.cpus().length)') make transpile_rust CORES=$CORES + - name: Run clippy + working-directory: ${{ matrix.library }}/runtimes/rust + shell: bash + run: | + cargo clippy + cargo clippy --example main + - name: Test Rust working-directory: ${{ matrix.library }} shell: bash diff --git a/AwsEncryptionSDK/runtimes/rust/examples/main.rs b/AwsEncryptionSDK/runtimes/rust/examples/main.rs index ebf68f96c..9049d25af 100644 --- a/AwsEncryptionSDK/runtimes/rust/examples/main.rs +++ b/AwsEncryptionSDK/runtimes/rust/examples/main.rs @@ -4,6 +4,7 @@ #![deny(warnings, unconditional_panic)] #![deny(nonstandard_style)] #![deny(clippy::all)] +#![allow(clippy::result_large_err)] pub mod client_supplier; pub mod cryptographic_materials_manager;