diff --git a/fish-rust/src/common.rs b/fish-rust/src/common.rs index d0b66e7a0..b1a951142 100644 --- a/fish-rust/src/common.rs +++ b/fish-rust/src/common.rs @@ -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`].