refactor(node): remove unnecessary clone from get_client
This commit is contained in:
@@ -48,7 +48,7 @@ pub struct Node {
|
|||||||
|
|
||||||
impl Node {
|
impl Node {
|
||||||
pub fn get_client(&self) -> Arc<Client> {
|
pub fn get_client(&self) -> Arc<Client> {
|
||||||
self.client.clone().upgrade().unwrap()
|
self.client.upgrade().unwrap()
|
||||||
}
|
}
|
||||||
// pub fn get_name(&self) -> &str {
|
// pub fn get_name(&self) -> &str {
|
||||||
// &self.path[self.trailing_slash_pos + 1..]
|
// &self.path[self.trailing_slash_pos + 1..]
|
||||||
|
|||||||
Reference in New Issue
Block a user