Skip to content

Commit 5408172

Browse files
author
Mathieu Poussin
committed
Cargo fix
1 parent aa43aec commit 5408172

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/main.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::collections::HashMap;
22

33
use anyhow::{Error, Result};
4-
use flexi_logger::{Duplicate, Logger, FileSpec};
4+
use flexi_logger::{Duplicate, FileSpec, Logger};
55
use structopt::StructOpt;
66

77
use rest::{netbox, netshot};
@@ -138,7 +138,7 @@ fn main() -> Result<(), Error> {
138138
}
139139

140140
log::debug!("Building netbox devices hashmap");
141-
let mut netbox_hashmap: HashMap<_, _> = netbox_devices
141+
let netbox_hashmap: HashMap<_, _> = netbox_devices
142142
.into_iter()
143143
.filter_map(|device| match device.primary_ip4 {
144144
Some(x) => Some((
@@ -188,11 +188,12 @@ fn main() -> Result<(), Error> {
188188

189189
#[cfg(test)]
190190
mod tests {
191-
use flexi_logger::{ Logger, AdaptiveFormat};
191+
use flexi_logger::{AdaptiveFormat, Logger};
192192

193193
#[ctor::ctor]
194194
fn enable_logging() {
195-
Logger::try_with_str("info").unwrap()
196-
.adaptive_format_for_stderr(AdaptiveFormat::Detailed);
195+
Logger::try_with_str("info")
196+
.unwrap()
197+
.adaptive_format_for_stderr(AdaptiveFormat::Detailed);
197198
}
198199
}

src/rest/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anyhow::{anyhow, Error};
1+
use anyhow::{Error};
22
use reqwest::Identity;
33
use std::fs::File;
44
use std::io::Read;

0 commit comments

Comments
 (0)