Skip to content

Commit

Permalink
refactor: by clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tu6ge committed May 24, 2024
1 parent 9f50b0f commit 07a8277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/register/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ impl<M> Index<&str> for InnerValidatorError<String, M> {

fn index(&self, index: &str) -> &Self::Output {
self.message
.get(&(index.to_string()))
.get(index)
.expect("this field is not found")
}
}
Expand Down

0 comments on commit 07a8277

Please sign in to comment.