enshort to common variable name

This commit is contained in:
yggverse 2024-12-14 07:04:23 +02:00
parent dd5fada7c7
commit 293c7d0aa3
15 changed files with 69 additions and 69 deletions

View file

@ -37,7 +37,7 @@ impl Database {
// Done
match tx.commit() {
Ok(_) => Ok(id),
Err(reason) => Err(reason),
Err(e) => Err(e),
}
}
@ -53,7 +53,7 @@ impl Database {
// Done
match tx.commit() {
Ok(_) => Ok(()),
Err(reason) => Err(reason),
Err(e) => Err(e),
}
}

View file

@ -9,8 +9,8 @@ pub enum Error {
impl Display for Error {
fn fmt(&self, f: &mut Formatter) -> Result {
match self {
Self::Database(reason) => write!(f, "Database error: {reason}"),
Self::Memory(reason) => write!(f, "Memory error: {reason}"),
Self::Database(e) => write!(f, "Database error: {e}"),
Self::Memory(e) => write!(f, "Memory error: {e}"),
}
}
}