Skip to content

Commit

Permalink
Explicit JsonPointer::ROOT lifetime.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-haudebourg committed Sep 16, 2024
1 parent 8bec130 commit 9b630d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/json_pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<'a> Default for &'a JsonPointer {
}

impl JsonPointer {
pub const ROOT: &Self = unsafe {
pub const ROOT: &'static Self = unsafe {
// SAFETY: the empty string is a valid JSON pointer.
JsonPointer::new_unchecked(&[])
};
Expand Down

0 comments on commit 9b630d0

Please sign in to comment.