mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
apply clippy optimizations
This commit is contained in:
parent
dd1411487e
commit
227c9bb246
6 changed files with 9 additions and 9 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue