Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Aug 20, 2024
1 parent 58b64d2 commit 1263913
Show file tree
Hide file tree
Showing 4 changed files with 515 additions and 998 deletions.
28 changes: 14 additions & 14 deletions main/src/infrastructure/plugin/backbone_shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ static APP_LIBRARY: std::sync::OnceLock<anyhow::Result<crate::infrastructure::ui
std::sync::OnceLock::new();

pub type RealearnSessionAccelerator =
RealearnAccelerator<WeakUnitModel, BackboneHelgoboxWindowSnitch>;
RealearnAccelerator<WeakUnitModel, BackboneHelgoboxWindowSnitch>;

pub type RealearnControlSurface =
MiddlewareControlSurface<RealearnControlSurfaceMiddleware<WeakUnitModel>>;
MiddlewareControlSurface<RealearnControlSurfaceMiddleware<WeakUnitModel>>;

/// Just the old term as alias for easier class search.
type _App = BackboneShell;
Expand Down Expand Up @@ -921,7 +921,7 @@ impl BackboneShell {
#[allow(dead_code)]
pub fn spawn_in_async_runtime<R>(
&self,
f: impl Future<Output=R> + Send + 'static,
f: impl Future<Output = R> + Send + 'static,
) -> tokio::task::JoinHandle<R>
where
R: Send + 'static,
Expand Down Expand Up @@ -1048,7 +1048,7 @@ impl BackboneShell {
self.controller_preset_manager.borrow().log_debug_info();
}

pub fn changed(&self) -> impl LocalObservable<'static, Item=(), Err=()> + 'static {
pub fn changed(&self) -> impl LocalObservable<'static, Item = (), Err = ()> + 'static {
self.sessions_changed_subject.borrow().clone()
}

Expand Down Expand Up @@ -1228,7 +1228,7 @@ impl BackboneShell {
.iter()
.find(|i| i.is_main_unit && i.instance_id == instance_id)
})
.ok()
.ok()
}

#[cfg(feature = "playtime")]
Expand Down Expand Up @@ -1922,7 +1922,7 @@ impl BackboneShell {
compartment,
target,
)
.or_else(|| self.find_first_session_with_target(None, compartment, target))
.or_else(|| self.find_first_session_with_target(None, compartment, target))
}

fn find_first_session_with_target(
Expand Down Expand Up @@ -1977,7 +1977,7 @@ impl BackboneShell {
Some(Reaper::get().current_project()),
input_descriptor,
)
.or_else(|| self.find_first_session_with_input_from(None, input_descriptor))
.or_else(|| self.find_first_session_with_input_from(None, input_descriptor))
}

fn find_first_session_with_input_from(
Expand All @@ -2002,13 +2002,13 @@ impl BackboneShell {
compartment,
capture_result,
)
.or_else(|| {
self.find_first_session_with_learnable_source_matching(
None,
compartment,
capture_result,
)
})
.or_else(|| {
self.find_first_session_with_learnable_source_matching(
None,
compartment,
capture_result,
)
})
}

fn find_first_session_with_learnable_source_matching(
Expand Down
Loading

0 comments on commit 1263913

Please sign in to comment.