We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda6efe commit 81b637bCopy full SHA for 81b637b
src/librustdoc/html/format.rs
@@ -1055,7 +1055,7 @@ fn fmt_type<'cx>(
1055
_ => String::new(),
1056
};
1057
let m = mutability.print_with_space();
1058
- let amp = if f.alternate() { "&".to_string() } else { "&".to_string() };
+ let amp = if f.alternate() { "&" } else { "&" };
1059
match **ty {
1060
clean::DynTrait(ref bounds, ref trait_lt)
1061
if bounds.len() > 1 || trait_lt.is_some() =>
0 commit comments