mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use refs
This commit is contained in:
parent
f463c71d4f
commit
aad0e266f6
6 changed files with 30 additions and 30 deletions
|
|
@ -115,7 +115,7 @@ impl App {
|
|||
match database.records() {
|
||||
Ok(records) => {
|
||||
for record in records {
|
||||
browser.restore(record.id);
|
||||
browser.restore(&record.id);
|
||||
}
|
||||
}
|
||||
Err(error) => panic!("{error}"), // @TODO
|
||||
|
|
@ -138,10 +138,10 @@ impl App {
|
|||
Ok(records) => {
|
||||
// Cleanup previous session records
|
||||
for record in records {
|
||||
match database.delete(record.id) {
|
||||
match database.delete(&record.id) {
|
||||
Ok(_) => {
|
||||
// Delegate clean action to childs
|
||||
browser.clean(record.id);
|
||||
browser.clean(&record.id);
|
||||
}
|
||||
Err(error) => panic!("{error}"), // @TODO
|
||||
}
|
||||
|
|
@ -151,7 +151,7 @@ impl App {
|
|||
match database.add() {
|
||||
Ok(_) => {
|
||||
// Delegate save action to childs
|
||||
browser.save(database.last_insert_id());
|
||||
browser.save(&database.last_insert_id());
|
||||
}
|
||||
Err(error) => panic!("{error}"), // @TODO
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue