Skip to content

Commit

Permalink
chore: clippy errors (#106)
Browse files Browse the repository at this point in the history
* chore: clippy errors

* ci: change rust toolchain version

* ci: check rust version

* chore: add rust-toolchain file

* ci: remove actions-rs
  • Loading branch information
Angel-Dijoux authored Dec 7, 2024
1 parent 10aa347 commit b55bf69
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ jobs:
python-version: "3.10"
cache: "pip"
- run: pip install uv
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: rustc --version
- run: cargo fmt --all --check
- run: cargo clippy -- -D warnings
- run: cargo test
Expand Down
24 changes: 13 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ impl<'de> de::Deserialize<'de> for PathStr<'static> {
{
struct PathStrVisitor;

impl<'de> de::Visitor<'de> for PathStrVisitor {
impl de::Visitor<'_> for PathStrVisitor {
type Value = PathStr<'static>;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.82.0

0 comments on commit b55bf69

Please sign in to comment.