refactor: remove item alias remote_methods

This commit is contained in:
Nova
2022-11-05 17:56:09 -04:00
parent 12c2443e5d
commit cbb09a9d97
4 changed files with 9 additions and 15 deletions

View File

@@ -77,7 +77,7 @@ impl InputMethod {
node: &Arc<Node>,
specialization: InputType,
datamap: Option<Datamap>,
) -> Result<()> {
) -> Result<Arc<InputMethod>> {
ensure!(
node.spatial.get().is_some(),
"Internal: Node does not have a spatial attached!"
@@ -94,8 +94,8 @@ impl InputMethod {
datamap: Mutex::new(datamap),
};
let method = INPUT_METHOD_REGISTRY.add(method);
let _ = node.input_method.set(method);
Ok(())
let _ = node.input_method.set(method.clone());
Ok(method)
}
fn set_datamap(node: &Node, _calling_client: Arc<Client>, data: &[u8]) -> Result<()> {