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;
|
||||
|
||||
#[derive(Debug)]
|
||||
@@ -198,7 +203,6 @@ impl Roll {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fn term(e: &str) -> IResult<&str, Term> {
|
||||
// Ignore whitespace
|
||||
let (e, _) = multispace0(e)?;
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
use rand::thread_rng;
|
||||
use std::io::{self, BufRead, Write};
|
||||
use rust_roller::{Buckets, Roller};
|
||||
use std::io::{self, BufRead, Write};
|
||||
use textplots::{Chart, Plot, Shape};
|
||||
|
||||
fn main() {
|
||||
@@ -14,7 +14,7 @@ fn main() {
|
||||
Err(e) => {
|
||||
println!("bad input; err: {}", e);
|
||||
continue;
|
||||
},
|
||||
}
|
||||
};
|
||||
let mut bins = Buckets::<180>::new(&roller);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user