diff --git a/src/shell/plugins/namespaces/redox.rs b/src/shell/plugins/namespaces/redox.rs index 21336015591204605bfde03e6e3bb6909ee8a797..ec8fa4d0fab1fa1cc8c87069d5ac60b5e565d2bd 100644 --- a/src/shell/plugins/namespaces/redox.rs +++ b/src/shell/plugins/namespaces/redox.rs @@ -1,16 +1,17 @@ +use fnv::FnvHashMap; + use types::Identifier; use super::NamespaceError; -pub struct StringNamespace {} +pub struct StringNamespace; impl StringNamespace { - pub fn new() -> Result<StringNamespace, NamespaceError> { Err(NamespaceError::FunctionMissing) } + pub fn new() -> Result<StringNamespace, NamespaceError> { Ok(StringNamespace) } pub fn execute(&self, function: Identifier) -> Result<Option<String>, NamespaceError> { Ok(None) } } pub fn collect() -> FnvHashMap<Identifier, StringNamespace> { eprintln!("ion: Redox doesn't support plugins yet"); - let mut hashmap = FnvHashMap::default(); - hashmap + FnvHashMap::default() }