Skip to content

Commit

Permalink
Fix warning for lifetime in associated constant
Browse files Browse the repository at this point in the history
  • Loading branch information
d-k-bo committed Mar 25, 2024
1 parent 7cde3bb commit 812dd8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum QueryField {
Channel,
}
impl QueryField {
pub const ALL: &[QueryField] = &[
pub const ALL: &'static [QueryField] = &[
QueryField::Topic,
QueryField::Title,
QueryField::Description,
Expand Down

0 comments on commit 812dd8c

Please sign in to comment.