Skip to content

Commit

Permalink
test warning detection in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Aug 9, 2024
1 parent 3c4903e commit b98133d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
run: cargo clippy --workspace --all-targets -- -D warnings

cargo-check-lints:
name: cargo check + lints
name: no warnings or custom lint failures
runs-on: SubtensorCI
strategy:
matrix:
Expand Down
2 changes: 2 additions & 0 deletions support/linting/src/require_freeze_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use syn::{

pub struct RequireFreezeStruct;

fn meh() {}

impl Lint for RequireFreezeStruct {
fn lint(source: &TokenStream) -> Result<()> {
let mut visitor = EncodeDecodeVisitor::default();
Expand Down

0 comments on commit b98133d

Please sign in to comment.