Skip to content

Commit

Permalink
chore: remove mutable Profile from update_library
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jan 24, 2024
1 parent 12f1f4b commit 3dfaded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/models/ctx/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<E: Env + 'static> Update<E> for Ctx {
let profile_effects =
update_profile::<E>(&mut self.profile, &mut self.streams, &self.status, msg);
let library_effects =
update_library::<E>(&mut self.library, &mut self.profile, &self.status, msg);
update_library::<E>(&mut self.library, &self.profile, &self.status, msg);
let streams_effects = update_streams::<E>(&mut self.streams, &self.status, msg);
let search_history_effects =
update_search_history::<E>(&mut self.search_history, &self.status, msg);
Expand Down Expand Up @@ -141,7 +141,7 @@ impl<E: Env + 'static> Update<E> for Ctx {
let profile_effects =
update_profile::<E>(&mut self.profile, &mut self.streams, &self.status, msg);
let library_effects =
update_library::<E>(&mut self.library, &mut self.profile, &self.status, msg);
update_library::<E>(&mut self.library, &self.profile, &self.status, msg);
let trakt_addon_effects = update_trakt_addon::<E>(
&mut self.trakt_addon,
&self.profile,
Expand Down Expand Up @@ -235,7 +235,7 @@ impl<E: Env + 'static> Update<E> for Ctx {
let profile_effects =
update_profile::<E>(&mut self.profile, &mut self.streams, &self.status, msg);
let library_effects =
update_library::<E>(&mut self.library, &mut self.profile, &self.status, msg);
update_library::<E>(&mut self.library, &self.profile, &self.status, msg);
let streams_effects = update_streams::<E>(&mut self.streams, &self.status, msg);
let trakt_addon_effects = update_trakt_addon::<E>(
&mut self.trakt_addon,
Expand Down
2 changes: 1 addition & 1 deletion src/models/ctx/update_library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::{

pub fn update_library<E: Env + 'static>(
library: &mut LibraryBucket,
profile: &mut Profile,
profile: &Profile,
status: &CtxStatus,
msg: &Msg,
) -> Effects {
Expand Down

0 comments on commit 3dfaded

Please sign in to comment.