summaryrefslogtreecommitdiff
path: root/src/utils/helpwrap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/helpwrap.rs')
-rw-r--r--src/utils/helpwrap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/helpwrap.rs b/src/utils/helpwrap.rs
index 24191d2..c091e32 100644
--- a/src/utils/helpwrap.rs
+++ b/src/utils/helpwrap.rs
@@ -103,7 +103,7 @@ pub fn wrap(text: &str, width: usize, indent_with: &str, no_indent: &str, no_wra
}
#[cfg(test)]
- if result.find("no-sanity").is_none() {
+ if !result.contains("no-sanity") {
// sanity check
let stripped_input = text
.replace(" ", "")