apply clippy optimizations

This commit is contained in:
yggverse 2024-11-23 18:11:44 +02:00
parent dd1411487e
commit 227c9bb246
6 changed files with 9 additions and 9 deletions

View file

@ -8,11 +8,11 @@ pub enum Error {
impl Error {
pub fn to_string(&self) -> String {
match self {
Self::Clear => format!("Could not cleanup memory index"),
Self::Clear => "Could not cleanup memory index".to_string(),
Self::Overwrite(key) => {
format!("Overwrite attempt for existing record `{key}`")
}
Self::Unexpected => format!("Unexpected error"),
Self::Unexpected => "Unexpected error".to_string(),
}
}
}