diff options
| author | klensy <klensy@users.noreply.github.com> | 2024-01-11 15:04:48 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2024-01-11 15:04:48 +0300 |
| commit | aa696c5a228a2c9730227eb5a0e99fb9d85eb61d (patch) | |
| tree | afd10adce7a57c92aec0988955b083b43f73e065 /compiler/rustc_errors/src/markdown | |
| parent | 4580f4ab3f098e8f2ff2050626440cba52894c12 (diff) | |
| download | rust-aa696c5a228a2c9730227eb5a0e99fb9d85eb61d.tar.gz rust-aa696c5a228a2c9730227eb5a0e99fb9d85eb61d.zip | |
apply fmt
Diffstat (limited to 'compiler/rustc_errors/src/markdown')
| -rw-r--r-- | compiler/rustc_errors/src/markdown/tests/term.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs index a0d956bf0cd..bab47dcc175 100644 --- a/compiler/rustc_errors/src/markdown/tests/term.rs +++ b/compiler/rustc_errors/src/markdown/tests/term.rs @@ -5,7 +5,8 @@ use termcolor::{BufferWriter, ColorChoice}; use super::*; const INPUT: &str = include_str!("input.md"); -const OUTPUT_PATH: &[&str] = &[env!("CARGO_MANIFEST_DIR"), "src","markdown","tests","output.stdout"]; +const OUTPUT_PATH: &[&str] = + &[env!("CARGO_MANIFEST_DIR"), "src", "markdown", "tests", "output.stdout"]; const TEST_WIDTH: usize = 80; @@ -34,7 +35,7 @@ quis dolor non venenatis. Aliquam ut. "; fn test_wrapping_write() { WIDTH.with(|w| w.set(TEST_WIDTH)); let mut buf = BufWriter::new(Vec::new()); - let txt = TXT.replace("-\n","-").replace("_\n","_").replace('\n', " ").replace(" ", ""); + let txt = TXT.replace("-\n", "-").replace("_\n", "_").replace('\n', " ").replace(" ", ""); write_wrapping(&mut buf, &txt, 0, None).unwrap(); write_wrapping(&mut buf, &txt, 4, None).unwrap(); write_wrapping( |
