Skip to content

Commit

Permalink
Indicate anonymous lifetime in formatter to satisfy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffee-Nerd committed Jul 24, 2024
1 parent 9f339fb commit cfa325a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl From<LuaError> for CustomError {
}

impl std::fmt::Display for CustomError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}
Expand Down

0 comments on commit cfa325a

Please sign in to comment.