mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
Remove and_one_line()
This commit is contained in:
parent
5871967312
commit
812fc4ca56
@ -348,7 +348,3 @@ fn is_block_closure_forced(expr: &ast::Expr) -> bool {
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
fn and_one_line(x: Option<String>) -> Option<String> {
|
||||
x.and_then(|x| if x.contains('\n') { None } else { Some(x) })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user