style: format code for better readability in tests and function signatures
Some checks failed
CI / test (push) Failing after 4m59s
CI / clippy (push) Failing after 4m58s
CI / fmt (push) Successful in 23s

This commit is contained in:
2026-03-18 13:59:53 +01:00
parent 3d2bd5f9fe
commit 2e773cdeaf
4 changed files with 23 additions and 18 deletions

View File

@@ -57,7 +57,10 @@ impl FrecencyStore {
.as_secs();
let json = {
let mut data = self.data.lock().unwrap();
let entry = data.entry(id.to_string()).or_insert(Entry { count: 0, last_used: 0 });
let entry = data.entry(id.to_string()).or_insert(Entry {
count: 0,
last_used: 0,
});
entry.count += 1;
entry.last_used = now;
serde_json::to_string(&*data).ok()