Skip to content

Commit

Permalink
chore: cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed Jun 11, 2022
1 parent 7ff7f33 commit b36d70c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rust/crates/tidy-tree/src/layout/basic_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod basic_layout_test {
second.append_child(Node::new(3, 10., 10.));
root.append_child(second);
root.append_child(Node::new(4, 10., 10.));
let mut layout = BasicLayout {
let layout = BasicLayout {
parent_child_margin: 10.,
peer_margin: 5.,
};
Expand Down
2 changes: 1 addition & 1 deletion rust/crates/tidy-tree/src/layout/tidy_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ mod test {
use crate::node::Node;
#[test]
fn test_tidy_layout() {
let mut tidy = TidyLayout::new(1., 1.);
let tidy = TidyLayout::new(1., 1.);
let mut root = Node::new(0, 1., 1.);
let first_child = Node::new_with_child(
1,
Expand Down
4 changes: 2 additions & 2 deletions rust/crates/tidy-tree/tests/layout_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
mod aesthetic_rules;
mod gen;
use rand::{prelude::StdRng, SeedableRng};
use tidy_tree::{geometry::Coord, BasicLayout, Layout, Node, TidyLayout};
use tidy_tree::{BasicLayout, Layout, TidyLayout};
extern crate test;
use test::{black_box, Bencher};
use test::Bencher;

#[bench]
fn bench_tidy_layout(bench: &mut Bencher) {
Expand Down
2 changes: 1 addition & 1 deletion rust/crates/tidy-tree/tests/layout_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn test_partial_layout(layout: &mut dyn Layout) {

pub fn align_partial_layout_with_full_layout(layout: &mut dyn Layout) {
let mut rng = StdRng::seed_from_u64(1001);
for i in 0..10 {
for _i in 0..10 {
let mut tree = gen_tree(&mut rng, 100);
layout.layout(&mut tree);
let mut nodes: Vec<NonNull<Node>> = vec![];
Expand Down

0 comments on commit b36d70c

Please sign in to comment.