diff --git a/src/main.rs b/src/main.rs index 118180127e9e5a6561eebcdc4cdb6d2e6f4d317a..c3dd788b76278bd5167595ed8c60f44a3218857a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,15 +57,15 @@ quick_error! { type Result = std::result::Result; -const COMMIT_MESSAGE_COMMENT: &'static str = " +const COMMIT_MESSAGE_COMMENT: &str = " # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. "; -const COVER_LETTER_COMMENT: &'static str = " +const COVER_LETTER_COMMENT: &str = " # Please enter the cover letter for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the change. "; -const REBASE_COMMENT: &'static str = "\ +const REBASE_COMMENT: &str = "\ # # Commands: # p, pick = use commit @@ -82,19 +82,19 @@ const REBASE_COMMENT: &'static str = "\ # # However, if you remove everything, the rebase will be aborted. "; -const SCISSOR_LINE: &'static str = "\ +const SCISSOR_LINE: &str = "\ # ------------------------ >8 ------------------------"; -const SCISSOR_COMMENT: &'static str = "\ +const SCISSOR_COMMENT: &str = "\ # Do not touch the line above. # Everything below will be removed. "; -const SHELL_METACHARS: &'static str = "|&;<>()$`\\\"' \t\n*?[#~=%"; +const SHELL_METACHARS: &str = "|&;<>()$`\\\"' \t\n*?[#~=%"; -const SERIES_PREFIX: &'static str = "refs/heads/git-series/"; -const SHEAD_REF: &'static str = "refs/SHEAD"; -const STAGED_PREFIX: &'static str = "refs/git-series-internals/staged/"; -const WORKING_PREFIX: &'static str = "refs/git-series-internals/working/"; +const SERIES_PREFIX: &str = "refs/heads/git-series/"; +const SHEAD_REF: &str = "refs/SHEAD"; +const STAGED_PREFIX: &str = "refs/git-series-internals/staged/"; +const WORKING_PREFIX: &str = "refs/git-series-internals/working/"; const GIT_FILEMODE_BLOB: u32 = 0o100644; const GIT_FILEMODE_COMMIT: u32 = 0o160000;