Skip to content

Commit

Permalink
Continuing effort to test Clippy in a way that makes sense.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMcCormickJr committed Dec 15, 2024
1 parent f0fab2c commit 3fffed3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,3 @@ pub struct User {
pub second_factor: SecondFactor,
}


pub struct TestClippy {
pub test: String,
}

impl TestClippy {
pub fn new(test: String) -> Self {
return Self {
test,
};
}
}
16 changes: 16 additions & 0 deletions tests/clippy.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// tests/clippy.rs

#![forbid(unsafe_code)]


/*
#[test]
#[allow(dead_code)]
#[should_panic]
fn myfunc() -> i32 {
let x: i32 = 1;
return x;
}
//CONTINUE HERE
*/

0 comments on commit 3fffed3

Please sign in to comment.