From 691f91efdf9b2fc0e58738b16be9a8cae11917e4 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 14 Nov 2022 20:54:56 +0100 Subject: [PATCH] Fix mutability of get_var --- Cargo.toml | 2 +- src/context/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f7d1ddf..77cfdd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "embed-nu" -version = "0.3.4" +version = "0.3.5" edition = "2021" license = "Apache-2.0" repository = "https://github.com/Trivernis/embed-nu" diff --git a/src/context/mod.rs b/src/context/mod.rs index d22cb54..2aa8f51 100644 --- a/src/context/mod.rs +++ b/src/context/mod.rs @@ -55,7 +55,7 @@ impl Context { } /// Returns a variable defined in the stack - pub fn get_var>(&mut self, name: S) -> Option { + pub fn get_var>(&self, name: S) -> Option { let name = name.as_ref(); let dollar_name = format!("${name}"); let var_id = self