about summary refs log tree commit diff
path: root/tvix/eval/src/value
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r--tvix/eval/src/value/string.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tvix/eval/src/value/string.rs b/tvix/eval/src/value/string.rs
index 65022b6cc49c..095f87645cc5 100644
--- a/tvix/eval/src/value/string.rs
+++ b/tvix/eval/src/value/string.rs
@@ -60,7 +60,10 @@ impl Hash for NixString {
 
 impl NixString {
     pub const NAME: Self = NixString(StringRepr::Smol(SmolStr::new_inline("name")));
+    pub const NAME_REF: &'static Self = &Self::NAME;
+
     pub const VALUE: Self = NixString(StringRepr::Smol(SmolStr::new_inline("value")));
+    pub const VALUE_REF: &'static Self = &Self::VALUE;
 
     pub fn as_str(&self) -> &str {
         match &self.0 {