Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Aug 21, 2023
1 parent 2eac350 commit 31bfc2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions crates/hex-simd/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ macro_rules! ensure {
#[allow(unused_macros)]
macro_rules! try_ {
($result:expr) => {
match $result {
Ok(value) => value,
Err(_) => return Err(Error::new()),
{
match $result {
Ok(value) => value,
Err(()) => return Err(Error::new()),
}
}
};
}
2 changes: 1 addition & 1 deletion crates/uuid-simd/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ macro_rules! try_ {
($result:expr) => {
match $result {
Ok(value) => value,
Err(_) => return Err(Error::new()),
Err(()) => return Err(Error::new()),
}
};
}

0 comments on commit 31bfc2a

Please sign in to comment.