From ff46d1f88d4e34df82c8454ba0d68f0b8ece79f9 Mon Sep 17 00:00:00 2001 From: Davidson Souza Date: Tue, 20 Sep 2022 13:23:36 -0300 Subject: [PATCH] drop box --- Cargo.lock | 2 -- src/accumulator/pollard.rs | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e84b912..074a8d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,7 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 - [[package]] name = "bitcoin_hashes" version = "0.11.0" diff --git a/src/accumulator/pollard.rs b/src/accumulator/pollard.rs index 6506155..83de7d4 100644 --- a/src/accumulator/pollard.rs +++ b/src/accumulator/pollard.rs @@ -8,7 +8,7 @@ use std::{ }; use super::types; -type Node = Rc>; +type Node = Rc; #[derive(Clone)] pub struct PolNode { @@ -57,9 +57,9 @@ impl PolNode { node.as_rc() } /// Returns the current node as an Reference Counted Container "[Rc]". This is how - /// nodes are stored inside the tree. + /// nodes are stored inside the tree. fn as_rc(self) -> Node { - Rc::new(Box::new(self)) + Rc::new(self) } fn set_aunt(&self, aunt: Option) -> PolNode {