Skip to content

Commit

Permalink
drop box
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidson-Souza committed Feb 4, 2023
1 parent 19a7caa commit ff46d1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/accumulator/pollard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::{
};

use super::types;
type Node = Rc<Box<PolNode>>;
type Node = Rc<PolNode>;

#[derive(Clone)]
pub struct PolNode {
Expand Down Expand Up @@ -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<Node>) -> PolNode {
Expand Down

0 comments on commit ff46d1f

Please sign in to comment.