From: Ian Jackson Date: Thu, 31 Mar 2022 02:00:56 +0000 (+0100) Subject: clippy: Miscellaneous minor changes, and allow lints X-Git-Tag: otter-1.0.0~37 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5c2a84946daf01300d4b59736e6601c95a3f0afc;p=otter.git clippy: Miscellaneous minor changes, and allow lints Signed-off-by: Ian Jackson --- diff --git a/clippy-options b/clippy-options index de528dad..aa748070 100644 --- a/clippy-options +++ b/clippy-options @@ -32,3 +32,4 @@ -A clippy::unnecessary_lazy_evaluations -A clippy::map_flatten -A clippy::manual_split_once +-A clippy::expect_fun_call diff --git a/src/termprogress.rs b/src/termprogress.rs index 69a84f8d..d56c01f9 100644 --- a/src/termprogress.rs +++ b/src/termprogress.rs @@ -32,7 +32,7 @@ pub fn reporter() -> Box { let mut recheck_width = true; let width = if let Ok(val) = env::var(FORCE_VAR) { let mut val = &val[..]; - if let Some(rhs) = val.strip_prefix("+") { + if let Some(rhs) = val.strip_prefix('+') { val = rhs; newlines = true; }