Skip to content

Commit

Permalink
Clippy in v1.66
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed Dec 15, 2022
1 parent fbb7fbc commit b8fa9ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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 limitador-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "limitador-server"
version = "1.0.0-rc1"
version = "1.0.0"
authors = ["Alex Snaps <[email protected]>", "Eguzki Astiz Lezaun <[email protected]>", "David Ortiz <[email protected]>"]
license = "Apache-2.0"
keywords = ["rate-limiting", "rate", "limiter", "envoy", "rls"]
Expand Down
2 changes: 1 addition & 1 deletion limitador-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl Limiter {
let parsed_url = Url::parse(&cfg.url).unwrap();

let mut builder = InfinispanStorageBuilder::new(
&format!(
format!(
"{}://{}:{}",
parsed_url.scheme(),
parsed_url.host_str().unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion limitador/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Storage {
pub fn new() -> Self {
Self {
limits: RwLock::new(HashMap::new()),
counters: Box::new(InMemoryStorage::default()),
counters: Box::<InMemoryStorage>::default(),
}
}

Expand Down

0 comments on commit b8fa9ed

Please sign in to comment.