mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 07:18:08 +08:00
common.rs: implement Default for EscapeFlags
This commit is contained in:
parent
981e470a2e
commit
eb377d3c65
@ -150,6 +150,12 @@ pub enum EscapeStringStyle {
|
||||
Regex,
|
||||
}
|
||||
|
||||
impl Default for EscapeStringStyle {
|
||||
fn default() -> Self {
|
||||
Self::Script(EscapeFlags::default())
|
||||
}
|
||||
}
|
||||
|
||||
bitflags! {
|
||||
/// Flags for the [`escape_string()`] function. These are only applicable when the escape style is
|
||||
/// [`EscapeStringStyle::Script`].
|
||||
|
Loading…
x
Reference in New Issue
Block a user