Skip to content
Myr

Line up altdisplay expected strings on one line

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Rustfmt does not like how these were previously formatted and insisted on doing: const EXPECTED_ALTDISPLAY_G: &str = "\ f failed: oh no!\ "; which is worse.

authored by David Tolnay · committed by David Tolnay · parent 87e85ab · Browse files · 1 file+3 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−9 removed

  • tests:+3 added−9 removed

1 file+3 added−9 removed

modified:tests/test_fmt.rs+3 added-9 removed
11 unmodified lines
12fn h() -> Result<()> {13 g().context("g failed")14}1516const EXPECTED_ALTDISPLAY_F: &str = "\17oh no!\18";16const EXPECTED_ALTDISPLAY_F: &str = "oh no!";1720const EXPECTED_ALTDISPLAY_G: &str = "\21f failed: oh no!\22";18const EXPECTED_ALTDISPLAY_G: &str = "f failed: oh no!";1924const EXPECTED_ALTDISPLAY_H: &str = "\25g failed: f failed: oh no!\26";20const EXPECTED_ALTDISPLAY_H: &str = "g failed: f failed: oh no!";2122const EXPECTED_DEBUG_F: &str = "\23oh no!24
81 unmodified lines