Remove and_one_line()

This commit is contained in:
Seiichi Uchida 2017-12-10 21:30:12 +09:00
parent 5871967312
commit 812fc4ca56

View File

@ -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) })
}