Skip to content

Commit

Permalink
osdpctl: Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Jan 28, 2024
1 parent 557409b commit fb6e5a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion osdpctl/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use configparser::ini::Ini;
use libosdp::{
channel::{unix_channel::UnixChannel, OsdpChannel},
channel::{UnixChannel, OsdpChannel},
OsdpFlag, PdCapability, PdId, PdInfo,
};
use std::{
Expand Down
5 changes: 1 addition & 4 deletions osdpctl/src/cp.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::config::CpConfig;
use daemonize::Daemonize;
use libosdp::{events::OsdpEvent, ControlPanel};
use libosdp::{OsdpEvent, ControlPanel};
use std::{fs::File, thread, time::Duration};

type Result<T> = anyhow::Result<T, anyhow::Error>;
Expand All @@ -24,9 +24,6 @@ impl CpDaemon {
OsdpEvent::MfgReply(e) => {
log::info!("Event: PD-{pd} {:?}", e);
}
OsdpEvent::IO(e) => {
log::info!("Event: PD-{pd} {:?}", e);
}
OsdpEvent::Status(e) => {
log::info!("Event: PD-{pd} {:?}", e);
}
Expand Down
2 changes: 1 addition & 1 deletion osdpctl/src/pd.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::config::PdConfig;
use daemonize::Daemonize;
use libosdp::{commands::OsdpCommand, PeripheralDevice};
use libosdp::{OsdpCommand, PeripheralDevice};
use std::{fs::File, thread, time::Duration};

type Result<T> = anyhow::Result<T, anyhow::Error>;
Expand Down

0 comments on commit fb6e5a1

Please sign in to comment.