diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da7f66b6..7368b602 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,6 +9,7 @@ on: env: CARGO_TERM_COLOR: always +# Linters inspired from here: https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md jobs: fmt: name: Rustfmt @@ -62,25 +63,3 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose - - Windows: - name: Windows tests - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - - name: Install npcap sdk - run: | - Invoke-WebRequest -Uri "https://npcap.com/dist/npcap-sdk-1.13.zip" -OutFile "C:/npcap-sdk.zip" - Expand-Archive -LiteralPath C:/npcap-sdk.zip -DestinationPath C:/npcap-sdk - echo "LIB=C:/npcap-sdk/Lib/x64" >> $env:GITHUB_ENV - - name: Install npcap dll - run: | - # $SecPassword = ConvertTo-SecureString "${{ secrets.NPCAP_OEM_PASSWORD }}" -AsPlainText -Force - # $CredObject = New-Object System.Management.Automation.PSCredential ("${{ secrets.NPCAP_OEM_USERNAME }}", $SecPassword) - Invoke-WebRequest -Uri "https://npcap.com/oem/dist/npcap-1.71-oem.exe" -OutFile C:/npcap-oem.exe # -Credential $CredObject - C:/npcap-oem.exe /S - - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose diff --git a/src/enums/app_protocol.rs b/src/enums/app_protocol.rs index 9f0c3c4a..d0a9266a 100644 --- a/src/enums/app_protocol.rs +++ b/src/enums/app_protocol.rs @@ -1,3 +1,4 @@ +#![allow(clippy::upper_case_acronyms)] use std::fmt; /// Enum representing the possible observed values of application layer protocol. diff --git a/src/enums/trans_protocol.rs b/src/enums/trans_protocol.rs index 5af73e3b..ad54d279 100644 --- a/src/enums/trans_protocol.rs +++ b/src/enums/trans_protocol.rs @@ -1,3 +1,4 @@ +#![allow(clippy::upper_case_acronyms)] use std::fmt; /// Enum representing the possible observed values of transport layer protocol.