mirror of
https://codeberg.org/takouhai/strongbad_email.git
synced 2024-12-04 02:30:45 -05:00
chore: run rustfmt
This commit is contained in:
parent
4783063d14
commit
d139cff249
1 changed files with 2 additions and 3 deletions
|
@ -17,8 +17,8 @@ struct Emails {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let the_paper = include_str!("sbemails.toml");
|
let the_paper = include_str!("sbemails.toml");
|
||||||
let sbemails: Sbemails = toml::from_str(the_paper)
|
let sbemails: Sbemails =
|
||||||
.expect("failed to deserialize sbemails.toml");
|
toml::from_str(the_paper).expect("failed to deserialize sbemails.toml");
|
||||||
let mut random_number = thread_rng();
|
let mut random_number = thread_rng();
|
||||||
let sbemail = sbemails.emails.choose(&mut random_number).unwrap();
|
let sbemail = sbemails.emails.choose(&mut random_number).unwrap();
|
||||||
println!("sbemail #{}: {}", sbemail.number, sbemail.title);
|
println!("sbemail #{}: {}", sbemail.number, sbemail.title);
|
||||||
|
@ -27,4 +27,3 @@ fn main() {
|
||||||
println!("{}", part);
|
println!("{}", part);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue