refactor(node): remove unnecessary clone from get_client

This commit is contained in:
Nova
2022-08-17 19:11:00 -04:00
parent fe24bed492
commit 85077146d3

View File

@@ -48,7 +48,7 @@ pub struct Node {
impl Node {
pub fn get_client(&self) -> Arc<Client> {
self.client.clone().upgrade().unwrap()
self.client.upgrade().unwrap()
}
// pub fn get_name(&self) -> &str {
// &self.path[self.trailing_slash_pos + 1..]