From 3340500b31a0a02e56e0bc58bd8278b0426f8ae5 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Mon, 21 Oct 2024 23:25:13 +0200 Subject: [PATCH] desktop-app: Make context fields public --- Cargo.lock | 4 ++-- crates/desktop-app/src/collection/mod.rs | 14 +++++++------- crates/media-file/Cargo.toml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2af23213..d6b82c16 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -940,9 +940,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" [[package]] name = "calloop" diff --git a/crates/desktop-app/src/collection/mod.rs b/crates/desktop-app/src/collection/mod.rs index 6f4d14d1..084fbf48 100644 --- a/crates/desktop-app/src/collection/mod.rs +++ b/crates/desktop-app/src/collection/mod.rs @@ -117,21 +117,21 @@ async fn refresh_entity_from_db( #[derive(Debug, Clone, PartialEq, Eq)] pub struct RestoringFromMusicDirectoryContext { - kind: Option, - music_dir: DirPath<'static>, - restore_entity: RestoreEntityStrategy, - nested_music_dirs: NestedMusicDirectoriesStrategy, + pub kind: Option, + pub music_dir: DirPath<'static>, + pub restore_entity: RestoreEntityStrategy, + pub nested_music_dirs: NestedMusicDirectoriesStrategy, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct LoadingContext { - entity_uid: EntityUid, - loaded_before: Option, + pub entity_uid: EntityUid, + pub loaded_before: Option, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct SynchronizingContext { - entity: Entity, + pub entity: Entity, } fn parse_music_dir_path(path: &Path) -> anyhow::Result<(BaseUrl, PathBuf)> { diff --git a/crates/media-file/Cargo.toml b/crates/media-file/Cargo.toml index 0f23e373..45850015 100644 --- a/crates/media-file/Cargo.toml +++ b/crates/media-file/Cargo.toml @@ -19,7 +19,7 @@ workspace = true anyhow.workspace = true blake3 = { version = "1.5.4", features = ["traits-preview"] } bitflags.workspace = true -bytes = "1.7.2" +bytes = "1.8.0" data-encoding.workspace = true digest.workspace = true image = { workspace = true, features = ["default-formats"] }