diff --git a/.github/workflows/build-test-format.yml b/.github/workflows/build-test-format.yml index 1e9b8878..b73d195b 100644 --- a/.github/workflows/build-test-format.yml +++ b/.github/workflows/build-test-format.yml @@ -9,7 +9,7 @@ on: env: RUST_FMT: nightly-2023-04-01-x86_64-unknown-linux-gnu - RUST_CLIPPY: 1.68 + RUST_CLIPPY: 1.73 jobs: rustfmt: @@ -48,7 +48,7 @@ jobs: run: cargo build --manifest-path=./rust-bindings/Cargo.toml --release - name: Test Rust Project - run: cargo test --manifest-path=./rust-bindings/Cargo.toml --release + run: cargo test --manifest-path=./rust-bindings/Cargo.toml --release - name: Setup .NET uses: actions/setup-dotnet@v3 @@ -58,11 +58,12 @@ jobs: - name: Restore dependencies run: dotnet restore + - name: Check formatting + run: dotnet format --verify-no-changes + - name: Build - run: dotnet build --no-restore + run: dotnet build --no-restore -warnaserror - name: Test run: dotnet test --filter FullyQualifiedName!~IntegrationTests --no-build --verbosity normal - - name: Check formatting - run: dotnet format --verify-no-changes diff --git a/src/Types/DelegationEvent.cs b/src/Types/DelegationEvent.cs index bcd2e633..923e8983 100644 --- a/src/Types/DelegationEvent.cs +++ b/src/Types/DelegationEvent.cs @@ -27,6 +27,7 @@ internal static IDelegationEvent From(DelegationEvent delegationEvent) => DelegationAdded.From(delegationEvent.DelegationAdded), DelegationEvent.EventOneofCase.DelegationRemoved => DelegationRemoved.From(delegationEvent.DelegationRemoved), + DelegationEvent.EventOneofCase.BakerRemoved => throw new NotImplementedException(), DelegationEvent.EventOneofCase.None => throw new MissingEnumException(delegationEvent.EventCase), _ => throw new MissingEnumException(delegationEvent.EventCase)