Skip to content

Commit

Permalink
Additional lint, fix adaptive backoff import.
Browse files Browse the repository at this point in the history
  • Loading branch information
brhoades committed Dec 19, 2020
1 parent 21c637c commit bd1e88f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ddc = "0.2.2"

nix = "0.19.0"

adaptive_backoff = { version = "0.1", path = "../adaptive_backoff" }
adaptive_backoff = "0.1"

[lib]
name = "lib"
Expand Down
5 changes: 1 addition & 4 deletions src/lib/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::fs::{read_link, File};
use ddc::Ddc;
use ddc_i2c::I2cDdc;
use i2c_linux::I2c;
use log::{debug, error, info, trace, warn};
use log::{debug, error, trace, warn};

use crate::{config::DeviceConfig, edid::DisplayInfo, types::*};

Expand Down Expand Up @@ -111,9 +111,6 @@ impl Device {
pub fn display_info(&mut self) -> Result<DisplayInfo> {
DisplayInfo::new(&mut self.inner)
}

/// Attempt to reopen our device.
fn refresh_handle(&mut self) {}
}

impl std::fmt::Display for Device {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async fn main() -> Result<()> {
let opts: lib::config::Config = match Command::from_args() {
Command::Daemon(opts) => opts.config.try_into(),
Command::Start(opts) => opts.try_into(),
Probe => return probe::run().await,
Command::Probe => return probe::run().await,
}?;

lib::logging::init_logger(&opts.logging);
Expand Down

0 comments on commit bd1e88f

Please sign in to comment.