Skip to content

Commit

Permalink
Add lifetime for constant string
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Nov 27, 2023
1 parent 58a794c commit c1988b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/mogglo/src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ pub enum FindExpr {
}

impl FindExpr {
const ANONYMOUS: &str = "_";
const ELLIPSIS: &str = "..";
const ANONYMOUS: &'static str = "_";
const ELLIPSIS: &'static str = "..";

pub fn parse(s: String) -> Self {
if s == Self::ANONYMOUS {
Expand Down

0 comments on commit c1988b3

Please sign in to comment.