Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Aug 22, 2024
1 parent 4830d60 commit 497c1d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cooldown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ pub(super) mod prelude {
}

pub(super) fn plugin(app: &mut App) {
app
.add_systems(PhysicsSchedule, tick.in_set(AvianPickupSystem::TickTimers));
app.add_systems(PhysicsSchedule, tick.in_set(AvianPickupSystem::TickTimers));
}

/// Timings taken from [`CWeaponPhysCannon::SecondaryAttack`](https://github.com/ValveSoftware/source-sdk-2013/blob/master/sp/src/game/server/hl2/weapon_physcannon.cpp#L2284)
Expand Down
6 changes: 5 additions & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ fn set_verbs_according_to_input(
};

// Doing these checks now so that later systems can just call `unwrap`
let checks = [(has_global_transform, "GlobalTransform"), (has_shadow, "ShadowParams"), (has_error, "HoldError")];
let checks = [
(has_global_transform, "GlobalTransform"),
(has_shadow, "ShadowParams"),
(has_error, "HoldError"),
];
for (has_component, component_name) in checks.iter() {
if !has_component {
error!(
Expand Down
2 changes: 1 addition & 1 deletion src/prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ pub(super) fn plugin(app: &mut App) {
pub(super) mod prelude {
pub use super::{
ClampPickupPitchOverride,
HeldProp,
PickupMassOverride,
PreferredPickupDistanceOverride,
PreferredPickupRotation,
HeldProp
};
}

Expand Down

0 comments on commit 497c1d6

Please sign in to comment.