refactor(client): create interface functions take in a reference

This commit is contained in:
Nova
2022-06-14 20:53:52 -04:00
parent 87bfd3dec5
commit 2d3da131af
3 changed files with 4 additions and 4 deletions

View File

@@ -17,8 +17,8 @@ impl Client {
scenegraph: Default::default(),
});
client.scenegraph.set_client(&client);
spatial::create_interface(client.clone());
field::create_interface(client.clone());
spatial::create_interface(&client);
field::create_interface(&client);
client
}
pub fn dispatch(&self) -> Result<(), std::io::Error> {