Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 888ed24

Browse files
committed
warn unused config: rev0.5
1 parent 25cc7c8 commit 888ed24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ impl BlockingRequestAction for ShutdownRequest {
8585
}
8686
}
8787

88-
pub(crate) fn maybe_notify_unknown_configs<O: Output>(out: &O, unknowns: &Vec<(String)>) {
88+
pub(crate) fn maybe_notify_unknown_configs<O: Output>(out: &O, unknowns: &[String]) {
8989
use std::fmt::Write;
9090
if unknowns.is_empty() {
9191
return;
9292
}
9393
let mut msg = "Unknown RLS configuration:".to_string();
9494
let mut first = true;
9595
for key in unknowns {
96-
write!(msg, "{}`{}` ", if first {' '} else {','}, key.clone()).unwrap();
96+
write!(msg, "{}`{}` ", if first {' '} else {','}, key).unwrap();
9797
first = false;
9898
}
9999
out.notify(Notification::<ShowMessage>::new(ShowMessageParams {

0 commit comments

Comments
 (0)