We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
'static
const
1 parent 9c9aa1f commit 4db66fbCopy full SHA for 4db66fb
src/raw.rs
@@ -120,11 +120,11 @@ pub struct RawValue {
120
121
impl RawValue {
122
/// A literal JSON null value as `RawValue`.
123
- pub const NULL: &RawValue = RawValue::from_borrowed("null");
+ pub const NULL: &'static RawValue = RawValue::from_borrowed("null");
124
/// A literal JSON boolean true value as `RawValue`.
125
- pub const TRUE: &RawValue = RawValue::from_borrowed("true");
+ pub const TRUE: &'static RawValue = RawValue::from_borrowed("true");
126
/// A literal JSON boolean false value as `RawValue`.
127
- pub const FALSE: &RawValue = RawValue::from_borrowed("false");
+ pub const FALSE: &'static RawValue = RawValue::from_borrowed("false");
128
129
const fn from_borrowed(json: &str) -> &Self {
130
unsafe { mem::transmute::<&str, &RawValue>(json) }
0 commit comments