Skip to content
Snippets Groups Projects
Commit ce5a57e7 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix redox namespaces plugin

parent d144f190
No related branches found
No related tags found
No related merge requests found
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()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment