diff --git a/src/ui.rs b/src/ui.rs index b89c1c3..e750132 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -249,9 +249,9 @@ pub fn patch_prompt( MenuOption::Quit => PatchOption::Quit, MenuOption::Edit => label!('edit_prompt: { const INVALID_PATCH_PROMPT: &str = - "Your patch is invalid. Edit again (saying \"no\" discards!) [y/n]?"; + r#"Your patch is invalid. Edit again (saying "no" discards!) [y/n]?"#; const DOES_NOT_APPLY_PROMPT: &str = - "Your edited hunk does not apply. Edit again (saying \"no\" discards!) [y/n]?"; + r#"Your edited hunk does not apply. Edit again (saying "no" discards!) [y/n]?"#; let edited = 'edit_hunk: { let editor_cmd = crate::util::editor_cmd(); diff --git a/src/util.rs b/src/util.rs index e977c3f..d4702e5 100644 --- a/src/util.rs +++ b/src/util.rs @@ -245,7 +245,7 @@ impl std::fmt::Display for ReplaceFileError { match self { Self::Io(e) => write!(f, "{e}"), Self::ModifiedTimeChanged => { - write!(f, "the file's \"modified\" timestamp unexpectedly changed") + write!(f, r#"the file's "modified" timestamp unexpectedly changed"#) } } }