diff --git a/src/profile/database.rs b/src/profile/database.rs index 904ad34e..d39d25f1 100644 --- a/src/profile/database.rs +++ b/src/profile/database.rs @@ -26,8 +26,8 @@ impl Database { /// Get all records pub fn records(&self) -> Vec { - let binding = self.connection.read().unwrap(); - let tx = binding.unchecked_transaction().unwrap(); + let readable = self.connection.read().unwrap(); + let tx = readable.unchecked_transaction().unwrap(); records(&tx).unwrap() }