mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement to_string method, prevent memory index overwrite on validation step
This commit is contained in:
parent
cda94cba2e
commit
c86dca53bd
10 changed files with 100 additions and 21 deletions
|
|
@ -28,12 +28,12 @@ impl Bookmark {
|
|||
match database.records(None) {
|
||||
Ok(records) => {
|
||||
for record in records {
|
||||
if memory.add(record.request, record.id).is_err() {
|
||||
todo!()
|
||||
if let Err(reason) = memory.add(record.request, record.id) {
|
||||
todo!("{}", reason.to_string())
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(reason) => todo!("{reason}"),
|
||||
Err(reason) => todo!("{}", reason.to_string()),
|
||||
}
|
||||
|
||||
// Return new `Self`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue