fmt_type: don't alloc const String, use &str instead
This commit is contained in:
parent
cda6efeeb8
commit
81b637b6f2
@ -1055,7 +1055,7 @@ fn fmt_type<'cx>(
|
||||
_ => String::new(),
|
||||
};
|
||||
let m = mutability.print_with_space();
|
||||
let amp = if f.alternate() { "&".to_string() } else { "&".to_string() };
|
||||
let amp = if f.alternate() { "&" } else { "&" };
|
||||
match **ty {
|
||||
clean::DynTrait(ref bounds, ref trait_lt)
|
||||
if bounds.len() > 1 || trait_lt.is_some() =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user