mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Remove widestring-suffix uses
This removes both the `#[widestrs]` annotation as well as all `"foo"L` suffixes, and does a `cargo fmt` run on the result
This commit is contained in:
@@ -626,15 +626,20 @@ pub fn parse_util_escape_wildcards(s: &wstr) -> WString {
|
||||
}
|
||||
|
||||
/// Checks if the specified string is a help option.
|
||||
#[widestrs]
|
||||
pub fn parse_util_argument_is_help(s: &wstr) -> bool {
|
||||
["-h"L, "--help"L].contains(&s)
|
||||
[L!("-h"), L!("--help")].contains(&s)
|
||||
}
|
||||
|
||||
/// Returns true if the specified command is a builtin that may not be used in a pipeline.
|
||||
#[widestrs]
|
||||
fn parser_is_pipe_forbidden(word: &wstr) -> bool {
|
||||
["exec"L, "case"L, "break"L, "return"L, "continue"L].contains(&word)
|
||||
[
|
||||
L!("exec"),
|
||||
L!("case"),
|
||||
L!("break"),
|
||||
L!("return"),
|
||||
L!("continue"),
|
||||
]
|
||||
.contains(&word)
|
||||
}
|
||||
|
||||
// \return a pointer to the first argument node of an argument_or_redirection_list_t, or nullptr if
|
||||
|
||||
Reference in New Issue
Block a user