diff --git a/crates/components/fixtures/tests/fixture.rs b/crates/components/fixtures/tests/fixture.rs index ac8366595..455ab7ffb 100644 --- a/crates/components/fixtures/tests/fixture.rs +++ b/crates/components/fixtures/tests/fixture.rs @@ -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::{ @@ -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!( @@ -464,4 +464,3 @@ impl DmxWriter for TestDmxWriter { } } } - diff --git a/crates/util/package/src/main.rs b/crates/util/package/src/main.rs index 3da67d835..2013b3dd1 100644 --- a/crates/util/package/src/main.rs +++ b/crates/util/package/src/main.rs @@ -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; @@ -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; @@ -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);