From dd27d33ac7f0bbb0b7de79ec0603d7fe4123a612 Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Tue, 31 Mar 2026 14:38:04 -0700 Subject: [PATCH 1/2] m --- .github/workflows/library_rust_tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 From cd6bf8e2a130814f26d3032f0889897f32eab7c0 Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Tue, 31 Mar 2026 14:47:28 -0700 Subject: [PATCH 2/2] ignore large error linter failure as MPL returns large errors --- AwsEncryptionSDK/runtimes/rust/examples/main.rs | 1 + 1 file changed, 1 insertion(+) 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;