Silence clippy::if_same_then_else in a specific location

This commit is contained in:
Eduardo Sánchez Muñoz 2023-10-30 13:58:21 +01:00 committed by Amanieu d'Antras
parent 5fb5ff2ba3
commit 6bde860207

View file

@ -2981,6 +2981,7 @@ fn get_call(
param_str.push_str(&sub_call);
} else if s.contains(':') {
let re_params: Vec<_> = s.split(':').map(|v| v.to_string()).collect();
#[allow(clippy::if_same_then_else)]
if re_params[1] == "" {
re = Some((re_params[0].clone(), in_t[1].to_string()));
} else if re_params[1] == "in_t" {