fix: format and run cargo fix
This commit is contained in:
+6
-2
@@ -1,4 +1,9 @@
|
|||||||
use nom::{branch::alt, character::complete::{self, multispace0}, combinator::opt, IResult};
|
use nom::{
|
||||||
|
branch::alt,
|
||||||
|
character::complete::{self, multispace0},
|
||||||
|
combinator::opt,
|
||||||
|
IResult,
|
||||||
|
};
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@@ -198,7 +203,6 @@ impl Roll {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn term(e: &str) -> IResult<&str, Term> {
|
fn term(e: &str) -> IResult<&str, Term> {
|
||||||
// Ignore whitespace
|
// Ignore whitespace
|
||||||
let (e, _) = multispace0(e)?;
|
let (e, _) = multispace0(e)?;
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
use rand::thread_rng;
|
use rand::thread_rng;
|
||||||
use std::io::{self, BufRead, Write};
|
|
||||||
use rust_roller::{Buckets, Roller};
|
use rust_roller::{Buckets, Roller};
|
||||||
|
use std::io::{self, BufRead, Write};
|
||||||
use textplots::{Chart, Plot, Shape};
|
use textplots::{Chart, Plot, Shape};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
@@ -14,7 +14,7 @@ fn main() {
|
|||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("bad input; err: {}", e);
|
println!("bad input; err: {}", e);
|
||||||
continue;
|
continue;
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
let mut bins = Buckets::<180>::new(&roller);
|
let mut bins = Buckets::<180>::new(&roller);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user