diff --git a/snix/eval/src/value/string/mod.rs b/snix/eval/src/value/string/mod.rs index 003b2bf2e..efc461ece 100644 --- a/snix/eval/src/value/string/mod.rs +++ b/snix/eval/src/value/string/mod.rs @@ -638,10 +638,6 @@ impl NixString { std::str::from_utf8(self.as_bytes()) } - pub fn into_bstring(self) -> BString { - self.as_bstr().to_owned() - } - /// Return a displayable representation of the string as an /// identifier. /// diff --git a/snix/eval/src/vm/mod.rs b/snix/eval/src/vm/mod.rs index 78272f001..babe95f7b 100644 --- a/snix/eval/src/vm/mod.rs +++ b/snix/eval/src/vm/mod.rs @@ -801,12 +801,7 @@ where .unwrap_or(0); self.enqueue_generator("resolve_with", op_span, |co| { - resolve_with( - co, - ident.as_bstr().to_owned(), - with_stack_len, - closed_with_stack_len, - ) + resolve_with(co, ident.into(), with_stack_len, closed_with_stack_len) }); return Ok(false);