more things, but mostly starting to add library management
Some checks are pending
/ test (push) Waiting to run
Some checks are pending
/ test (push) Waiting to run
This commit is contained in:
parent
3fe77c93e2
commit
645411b59c
13 changed files with 341 additions and 260 deletions
|
@ -1,7 +1,6 @@
|
|||
use std::mem::replace;
|
||||
|
||||
use cosmic::iced::Executor;
|
||||
use miette::{miette, Result};
|
||||
use miette::{Result, miette};
|
||||
use sqlx::{Connection, SqliteConnection};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
@ -46,7 +45,8 @@ impl<T> Model<T> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[must_use] pub fn get_item(&self, index: i32) -> Option<&T> {
|
||||
#[must_use]
|
||||
pub fn get_item(&self, index: i32) -> Option<&T> {
|
||||
self.items.get(index as usize)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue