Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed Sep 5, 2024
1 parent 9709dd0 commit f47b9c8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion crates/api/src/handlers/connections.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use futures::{Stream, StreamExt};
use std::rc::Rc;
use std::sync::Arc;

use mizer_command_executor::*;
Expand Down
1 change: 0 additions & 1 deletion crates/api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::net::{IpAddr, Ipv4Addr, SocketAddr, TcpListener};
use std::rc::Rc;
use std::sync::Arc;

use pinboard::NonEmptyPinboard;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::definition::{
AxisGroup, ColorGroup, FixtureControl, FixtureControlChannel, FixtureControlType,
FixtureControls, FixtureMode, SubFixtureControlChannel,
AxisGroup, ColorGroup, FixtureControlChannel, FixtureControls, FixtureMode,
SubFixtureControlChannel,
};
use itertools::Itertools;
use mizer_ui_api::table::*;
Expand Down
1 change: 0 additions & 1 deletion crates/mizer/src/api/api_impl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::rc::Rc;
use std::sync::atomic::AtomicU8;
use std::sync::Arc;

Expand Down
1 change: 0 additions & 1 deletion crates/mizer/src/api/handler.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::path::PathBuf;

use crate::{ApiCommand, Mizer};
use mizer_clock::Clock;
use mizer_fixtures::library::FixtureLibrary;
use mizer_message_bus::Subscriber;
use mizer_module::Runtime;
Expand Down
10 changes: 6 additions & 4 deletions crates/mizer/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use anyhow::Context;
use std::sync::mpsc;

use structopt::StructOpt;
Expand Down Expand Up @@ -65,9 +64,12 @@ fn init() -> anyhow::Result<(Flags, LoggingGuard)> {
tracing::debug!("flags: {:?}", flags);
init_ffmpeg()?;
#[cfg(target_os = "macos")]
coremidi_hotplug_notification::receive_device_updates(|| {})
.map_err(|err| anyhow::anyhow!(err))
.context("Registering coremidi callback for MIDI device hotplug")?;
{
use anyhow::Context;
coremidi_hotplug_notification::receive_device_updates(|| {})
.map_err(|err| anyhow::anyhow!(err))
.context("Registering coremidi callback for MIDI device hotplug")?;
}

Ok((flags, guard))
}
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::commands::StaticNodeDescriptor;
use crate::context::CoordinatorRuntimeContext;
use anyhow::Context;
use indexmap::IndexMap;
use mizer_clock::{BoxedClock, ClockFrame, SystemClock};
use mizer_clock::{BoxedClock, ClockFrame};
use mizer_debug_ui_impl::{Injector, NodeStateAccess};
use mizer_node::{
NodeDesigner, NodeLink, NodeMetadata, NodePath, NodeSetting, NodeType, PipelineNode,
Expand Down

0 comments on commit f47b9c8

Please sign in to comment.