chore: clippy lints
This commit is contained in:
parent
9301d38b77
commit
5e46fef0d7
17 changed files with 72 additions and 64 deletions
|
|
@ -25,7 +25,12 @@ pub struct Assertion {
|
|||
|
||||
impl Assertion {
|
||||
#[must_use]
|
||||
pub fn new(row: usize, col: usize, negative: bool, expected_capture_name: String) -> Self {
|
||||
pub const fn new(
|
||||
row: usize,
|
||||
col: usize,
|
||||
negative: bool,
|
||||
expected_capture_name: String,
|
||||
) -> Self {
|
||||
Self {
|
||||
position: Point::new(row, col),
|
||||
negative,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue