File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11use std:: collections:: HashMap ;
22
33use anyhow:: { Error , Result } ;
4- use flexi_logger:: { Duplicate , Logger , FileSpec } ;
4+ use flexi_logger:: { Duplicate , FileSpec , Logger } ;
55use structopt:: StructOpt ;
66
77use 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) ]
190190mod 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}
Original file line number Diff line number Diff line change 1- use anyhow:: { anyhow , Error } ;
1+ use anyhow:: { Error } ;
22use reqwest:: Identity ;
33use std:: fs:: File ;
44use std:: io:: Read ;
You can’t perform that action at this time.
0 commit comments