Skip to content

Commit

Permalink
fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Jun 28, 2024
1 parent 1bf2ad0 commit 263c5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/bin/monocle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::type_complexity)]
use std::io::Write;
use std::net::IpAddr;
use std::path::PathBuf;
Expand Down Expand Up @@ -375,7 +376,7 @@ fn elem_to_string(elem: &BgpElem, json: bool, pretty: bool, collector: &str) ->
val.to_string()
}
} else {
format!("{}|{}", elem.to_string(), collector)
format!("{}|{}", elem, collector)
}
}

Expand Down
14 changes: 0 additions & 14 deletions src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,3 @@ impl MsgStore {
}
}
}

#[cfg(test)]
mod tests {
use super::*;
use bgpkit_parser::BgpkitParser;

#[test]
fn test_insert() {
let store = MsgStore::new(&Some("test.sqlite3".to_string()), false);
let url = "https://spaces.bgpkit.org/parser/update-example.gz";
let elems: Vec<BgpElem> = BgpkitParser::new(url).unwrap().into_elem_iter().collect();
store.insert_elems(&elems);
}
}

0 comments on commit 263c5f0

Please sign in to comment.