Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
taspelund committed Oct 20, 2024
1 parent 67b520a commit c546a03
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions rdb/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,11 +713,6 @@ impl Reaper {

#[cfg(test)]
mod test {
use crate::StaticRouteKey;
use crate::{
db::Db, BgpPathProperties, Path, Prefix, Prefix4,
DEFAULT_RIB_PRIORITY_BGP, DEFAULT_RIB_PRIORITY_STATIC,
};
use slog::{Drain, Logger};
use std::fs::File;
use std::io::Write;
Expand Down Expand Up @@ -787,7 +782,7 @@ mod test {
let static_path1 = Path::from(static_key1);

// setup
let log = init_file_logger(&"/tmp/rib.log");
let log = init_file_logger("/tmp/rib.log");
let db_path = "/tmp/rb.db".to_string();
let _ = std::fs::remove_dir_all(&db_path);
let db = Db::new(&db_path, log.clone()).expect("create db");
Expand Down

0 comments on commit c546a03

Please sign in to comment.