reformat the world

This commit is contained in:
Aleksey Kladov 2019-02-08 14:49:43 +03:00
parent 5cb1d41a30
commit 12e3b4c70b
129 changed files with 727 additions and 2509 deletions

View file

@ -25,10 +25,7 @@ impl FnSignature {
func: Function,
) -> Arc<FnSignature> {
let (_, node) = func.source(db);
let name = node
.name()
.map(|n| n.as_name())
.unwrap_or_else(Name::missing);
let name = node.name().map(|n| n.as_name()).unwrap_or_else(Name::missing);
let mut params = Vec::new();
let mut has_self_param = false;
if let Some(param_list) = node.param_list() {
@ -61,12 +58,7 @@ impl FnSignature {
TypeRef::unit()
};
let sig = FnSignature {
name,
params,
ret_type,
has_self_param,
};
let sig = FnSignature { name, params, ret_type, has_self_param };
Arc::new(sig)
}
}