diff --git a/src/main.rs b/src/main.rs index 18cc24e..062a197 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,8 @@ clippy::enum_variant_names, clippy::large_enum_variant, clippy::module_name_repetitions, - clippy::similar_names + clippy::similar_names, + clippy::struct_excessive_bools )] mod alias; diff --git a/src/shell/bash.rs b/src/shell/bash.rs index 35b4b20..373f515 100644 --- a/src/shell/bash.rs +++ b/src/shell/bash.rs @@ -65,12 +65,13 @@ impl Shell for Bash { } } -/// This code is based on Richard Hansen's answer on StackOverflow: -/// https://stackoverflow.com/a/7287873/1176984 +/// This code is based on [Richard Hansen's answer on `StackOverflow`](https://stackoverflow.com/a/7287873/1176984) /// /// Usage: +/// ```bash /// __fnm_trap_add__ 'echo "hello"' EXIT -pub const TRAP_ADD: &'static str = indoc::indoc!( +/// ``` +pub const TRAP_ADD: &str = indoc::indoc!( r#" __fnm_trap_add__() { __fnm_trap_add___cmd=$1; shift || fatal "${FUNCNAME} usage error"