mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-26 06:21:58 +00:00
fix incorrect assertion
This commit is contained in:
parent
5e32113747
commit
eac71c07f6
@ -30,7 +30,7 @@ impl Misc {
|
|||||||
|
|
||||||
// update values from the DB (if exists)
|
// update values from the DB (if exists)
|
||||||
for row in rows {
|
for row in rows {
|
||||||
assert!(!m.insert(Memory::from_db_row(&row.key, row.value).unwrap()))
|
m.insert(Memory::from_db_row(&row.key, row.value).unwrap());
|
||||||
// * panics if the DB was malformed or changed unexpectedly
|
// * panics if the DB was malformed or changed unexpectedly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -47,12 +47,10 @@ impl Misc {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_highlight_request_entry(&self, value: bool) {
|
pub fn set_highlight_request_entry(&self, value: bool) -> bool {
|
||||||
assert!(
|
self.memory
|
||||||
self.memory
|
.borrow_mut()
|
||||||
.borrow_mut()
|
.insert(Memory::highlight_request_entry(value))
|
||||||
.insert(Memory::highlight_request_entry(value)),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user