Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Jan 25, 2025
1 parent 04d814e commit bd494a2
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions main/src/domain/targets/playtime_matrix_action_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,7 @@ mod playtime_impl {
use PlaytimeMatrixAction::*;
let supports_rt_control = matches!(
self.action,
Stop | SmartRecord
| StartOrStopPlayback
| SilenceModeOnOffState
| Panic
| TapTempo
Stop | SmartRecord | StartOrStopPlayback | SilenceModeOnOffState | Panic | TapTempo
);
if !supports_rt_control {
return None;
Expand Down Expand Up @@ -408,9 +404,7 @@ mod playtime_impl {
matrix.sequencer().status() == SequencerStatus::Recording
|| matrix.num_really_recording_clips() > 0
}
PlaytimeMatrixAction::StartOrStopPlayback => {
!matrix.is_in_silence_mode()
}
PlaytimeMatrixAction::StartOrStopPlayback => !matrix.is_in_silence_mode(),
PlaytimeMatrixAction::SilenceModeOnOffState => matrix.is_in_silence_mode(),
PlaytimeMatrixAction::Panic => {
return None;
Expand Down Expand Up @@ -550,9 +544,7 @@ mod playtime_impl {
| SilenceModeOnOffState
| SequencerRecordOnOffState
| SequencerPlayOnOffState
| StartOrStopPlayback => {
(ControlType::AbsoluteContinuous, TargetCharacter::Switch)
}
| StartOrStopPlayback => (ControlType::AbsoluteContinuous, TargetCharacter::Switch),
}
}

Expand Down

0 comments on commit bd494a2

Please sign in to comment.