Skip to content

Commit

Permalink
Changed some string literals to raw string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengler committed Jun 23, 2024
1 parent f2aecb8 commit 0a5fd58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"#)
}
}
}
Expand Down

0 comments on commit 0a5fd58

Please sign in to comment.