Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed May 3, 2024
1 parent 3748a48 commit e75ae55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion limitador-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// check if the real path to the config file changed
// (eg: k8s ConfigMap replacement)
if canonical_limit_file != last_known_canonical_path {
last_known_canonical_path = canonical_limit_file.clone();
last_known_canonical_path.clone_from(&canonical_limit_file);
let limiter = limiter.clone();
handle.spawn(async move {
match limiter.load_limits_from_file(&canonical_limit_file).await {
Expand Down

0 comments on commit e75ae55

Please sign in to comment.