Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 295e5733a0bd0d09d48ae6b3a2084035f82b5027
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b0a81879c02846f1bded9849c873ee5c9177ecc8
Choose a head ref
Showing with 1 addition and 2 deletions.
  1. +1 −2 library/alloc/src/fmt.rs
3 changes: 1 addition & 2 deletions library/alloc/src/fmt.rs
Original file line number Diff line number Diff line change
@@ -645,8 +645,7 @@ pub fn format(args: Arguments<'_>) -> string::String {
fn format_inner(args: Arguments<'_>) -> string::String {
let capacity = args.estimated_capacity();
let mut output = string::String::with_capacity(capacity);
output
.write_fmt(args)
core::fmt::write(&mut output, args)
.expect("a formatting trait implementation returned an error when the underlying stream did not");
output
}