// (git not installed or if this is not a git repository) just return an empty string.
fn commit_info() -> String {
match (channel(), commit_hash(), commit_date()) {
- (channel, Some(hash), Some(date)) => format!("{} ({} {})", channel, hash.trim_right(), date),
+ (channel, Some(hash), Some(date)) => {
+ format!("{} ({} {})", channel, hash.trim_right(), date)
+ }
_ => String::new(),
}
}
ast::TyParamBound::TraitTyParamBound(ref tref, ast::TraitBoundModifier::None) => {
tref.rewrite(context, shape)
}
- ast::TyParamBound::TraitTyParamBound(ref tref, ast::TraitBoundModifier::Maybe) => {
- Some(format!(
- "?{}",
- tref.rewrite(context, shape.offset_left(1)?)?
- ))
- }
+ ast::TyParamBound::TraitTyParamBound(ref tref, ast::TraitBoundModifier::Maybe) => Some(
+ format!("?{}", tref.rewrite(context, shape.offset_left(1)?)?),
+ ),
ast::TyParamBound::RegionTyParamBound(ref l) => l.rewrite(context, shape),
}
}
"elit",
);
// #1501
- let hyper = Arc::new(Client::with_connector(HttpsConnector::new(
- TlsClient::new(),
- )));
+ let hyper = Arc::new(Client::with_connector(
+ HttpsConnector::new(TlsClient::new()),
+ ));
// chain
let x = yooooooooooooo