You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*0 1 2 3 4 5 6 7 8 90123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789*/fnmain(){// This line has 100 characters ...............................................................9let connection = candidate.connect(Duration::from_secs(1)).context("connecting to the device")?;// This line has 99 characters ...............................................................8let connection = candidate.connect(Duration::from_secs(1)).context("connecting to the devic")?;// This line has 98 characters ..............................................................7let connection = candidate.connect(Duration::from_secs(1)).context("connecting to the devi")?;}
Content of rustfmt.toml:
comment_width = 100use_small_heuristics = "Max"
Expected formatting is that nothing changes. The file is already correctly formatted.
Actual formatting is the following (lines with 100 and 99 characters are wrapped):
/*0 1 2 3 4 5 6 7 8 90123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789*/fnmain(){// This line has 100 characters ...............................................................9let connection =
candidate.connect(Duration::from_secs(1)).context("connecting to the device")?;// This line has 99 characters ...............................................................8let connection =
candidate.connect(Duration::from_secs(1)).context("connecting to the devic")?;// This line has 98 characters ..............................................................7let connection = candidate.connect(Duration::from_secs(1)).context("connecting to the devi")?;}
Maybe it's related to #6180? Or maybe it's how use_small_heuristics = Max is supposed to work since the documentation doesn't say anything.
The text was updated successfully, but these errors were encountered:
Content of
src/main.rs
:Content of
rustfmt.toml
:Expected formatting is that nothing changes. The file is already correctly formatted.
Actual formatting is the following (lines with 100 and 99 characters are wrapped):
Maybe it's related to #6180? Or maybe it's how
use_small_heuristics = Max
is supposed to work since the documentation doesn't say anything.The text was updated successfully, but these errors were encountered: