fix: format and run cargo fix

This commit is contained in:
Charles
2024-11-26 21:36:19 -08:00
parent 8ca8a586b4
commit 5a34fe3d93
2 changed files with 17 additions and 13 deletions
+6 -2
View File
@@ -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
View File
@@ -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);