Add rustfmt.toml for longer lines
This commit is contained in:
parent
3dfcc6fad7
commit
16d7fa55e5
|
@ -3,11 +3,7 @@ use itertools::Itertools;
|
||||||
use std::io::BufRead;
|
use std::io::BufRead;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let input: Vec<usize> = std::io::stdin()
|
let input: Vec<usize> = std::io::stdin().lock().lines().filter_map(|l| l.unwrap().parse().ok()).collect();
|
||||||
.lock()
|
|
||||||
.lines()
|
|
||||||
.filter_map(|l| l.unwrap().parse().ok())
|
|
||||||
.collect();
|
|
||||||
let p1 = input
|
let p1 = input
|
||||||
.iter()
|
.iter()
|
||||||
.tuple_combinations()
|
.tuple_combinations()
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
newline_style = "Unix"
|
||||||
|
max_width = 140
|
||||||
|
imports_layout = "Horizontal"
|
||||||
|
merge_imports = true
|
||||||
|
struct_field_align_threshold = 25
|
||||||
|
where_single_line = true
|
||||||
|
edition = "2018"
|
Loading…
Reference in New Issue