Skip to content

Commit

Permalink
style: apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed Sep 9, 2024
1 parent 7ac3fa5 commit 86def17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions crates/components/fixtures/tests/fixture.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::sync::Arc;
use parking_lot::Mutex;
use std::sync::Arc;
use test_case::test_case;

use mizer_fixtures::definition::{
Expand Down Expand Up @@ -451,7 +451,7 @@ impl DmxWriter for TestDmxWriter {
let mut buffer = self.buffer.lock();
buffer[channel as usize] = value;
}

fn write_bulk(&self, universe: u16, channel: u16, values: &[u8]) {
assert!(channel < 512, "DMX Channel is above 512");
assert!(
Expand All @@ -464,4 +464,3 @@ impl DmxWriter for TestDmxWriter {
}
}
}

6 changes: 3 additions & 3 deletions crates/util/package/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Context;
use std::fs;
use std::fs::{DirEntry, File};
use std::path::{Path, PathBuf};
use anyhow::Context;

use mizer_settings::Settings;

Expand Down Expand Up @@ -354,7 +354,7 @@ fn copy_all(from: &Path, to: &Path) -> anyhow::Result<()> {
if target.is_absolute() {
println!("Copying from {:?} to {:?}", target, to);
fs::copy(&target, &to)?;
}else {
} else {
link(&target, &to)?;
}
continue;
Expand All @@ -368,7 +368,7 @@ fn copy_all(from: &Path, to: &Path) -> anyhow::Result<()> {
println!("Copying from {:?} to {:?}", from, to);
fs::copy(&from, &to)?;
}
}else {
} else {
fs::remove_file(to).ok();

println!("Copying from {:?} to {:?}", from, to);
Expand Down

0 comments on commit 86def17

Please sign in to comment.