rust/tests/target/issue-2985.rs
2018-10-15 23:24:35 +02:00

37 lines
2.1 KiB
Rust

// rustfmt-indent_style: Visual
fn foo() {
{
{
let extra_encoder_settings = extra_encoder_settings.iter()
.filter_map(|&(name, value)| {
value.split()
.next()
.something()
.something2()
.something3()
.something4()
});
let extra_encoder_settings = extra_encoder_settings.iter()
.filter_map(|&(name, value)| {
value.split()
.next()
.something()
.something2()
.something3()
.something4()
})
.something();
if let Some(subpod) = pod.subpods.iter().find(|s| {
!s.plaintext
.as_ref()
.map(String::as_ref)
.unwrap_or("")
.is_empty()
})
{
do_something();
}
}
}
}