Improve code quality

This commit is contained in:
Vansh Nath 2025-04-11 10:55:39 +02:00
parent 7480fcdf16
commit 2cee0b15eb
No known key found for this signature in database
GPG Key ID: 709BF3EAFB217A96

View File

@ -105,7 +105,7 @@ impl<T: Completer> Completer for CustomCompletion<T> {
} }
let positional = let positional =
options.get("positional").and_then(|val| val.as_bool().ok()); options.get("positional").and_then(|val| val.as_bool().ok());
if let Some(_positional) = positional { if positional.is_some() {
log::warn!("Use of the positional option is deprecated. Use the substring match algorithm instead."); log::warn!("Use of the positional option is deprecated. Use the substring match algorithm instead.");
} }
if let Some(algorithm) = options if let Some(algorithm) = options