enable used_underscore_binding lint

This commit is contained in:
Charles Hall 2024-05-14 19:44:26 -07:00
parent e3672eb4e0
commit 3978b9c580
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 8 additions and 7 deletions

View file

@ -118,7 +118,7 @@ impl service::globals::Data for KeyValueDatabase {
}
fn cleanup(&self) -> Result<()> {
self._db.cleanup()
self.db.cleanup()
}
fn memory_usage(&self) -> String {
@ -142,7 +142,7 @@ our_real_users_cache: {our_real_users_cache}
appservice_in_room_cache: {appservice_in_room_cache}
lasttimelinecount_cache: {lasttimelinecount_cache}\n"
);
if let Ok(db_stats) = self._db.memory_usage() {
if let Ok(db_stats) = self.db.memory_usage() {
response += &db_stats;
}