diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a2907f..13a58d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,19 @@ permissions: contents: read jobs: + fmt: + name: ๐ŸŽจ Check formatting + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ›  Checkout + uses: actions/checkout@v6 + + - name: ๐Ÿงฐ Install rustfmt + run: rustup component add rustfmt + + - name: ๐ŸŽจ Cargo fmt + run: cargo fmt --all -- --check + test: name: ๐Ÿงช ${{ matrix.task }} (${{ matrix.profile }}) runs-on: ubuntu-latest diff --git a/src/ext_type.rs b/src/ext_type.rs index 358c64b..33757ee 100644 --- a/src/ext_type.rs +++ b/src/ext_type.rs @@ -143,7 +143,7 @@ where T: Serialize + DeserializeOwned, { let Some(filename) = filename else { - return Ok(None) + return Ok(None); }; let full_path = path.join(filename);