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.
1 parent ccafc3c commit 2a04bdcCopy full SHA for 2a04bdc
src/interpreter/runtime.rs
@@ -119,7 +119,6 @@ impl Runtime {
119
},
120
repository::Loader::Intrinsic(map) => {
121
let text = map.get(name)
122
- .map(ToString::to_string) // TODO Expensive copy from string literal :/
123
.ok_or(RuntimeError::error(format!("Error loading {:?}: missing intrinsic", name).as_str()).to_array())?;
124
self.load_text_as_module(&text, name.clone())?
125
// TODO Should map error as 'in string xx', like in load_file_as_module
0 commit comments