mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
a9c3108c9c
New defaults are `Tabbed` for `chain_indent` and `chain_base_indent`, and `5` for `closure_block_indent_threshold`.
17 lines
523 B
Rust
17 lines
523 B
Rust
// rustfmt-chains_overflow_last: false
|
|
|
|
fn main() {
|
|
reader.lines()
|
|
.map(|line| line.expect("Failed getting line"))
|
|
.take_while(|line| line_regex.is_match(&line))
|
|
.filter_map(|line| {
|
|
regex.captures_iter(&line)
|
|
.next()
|
|
.map(|capture| {
|
|
(capture.at(1).expect("Couldn\'t unwrap capture").to_owned(),
|
|
capture.at(2).expect("Couldn\'t unwrap capture").to_owned())
|
|
})
|
|
})
|
|
.collect();
|
|
}
|