Skip to content

Commit

Permalink
desktop-app: Make context fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Oct 21, 2024
1 parent 9b5c807 commit 3340500
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions crates/desktop-app/src/collection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,21 @@ async fn refresh_entity_from_db(

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct RestoringFromMusicDirectoryContext {
kind: Option<String>,
music_dir: DirPath<'static>,
restore_entity: RestoreEntityStrategy,
nested_music_dirs: NestedMusicDirectoriesStrategy,
pub kind: Option<String>,
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<Collection>,
pub entity_uid: EntityUid,
pub loaded_before: Option<Collection>,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SynchronizingContext {
entity: Entity,
pub entity: Entity,
}

fn parse_music_dir_path(path: &Path) -> anyhow::Result<(BaseUrl, PathBuf)> {
Expand Down
2 changes: 1 addition & 1 deletion crates/media-file/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down

0 comments on commit 3340500

Please sign in to comment.