From 1fa7f5241fb91d2e5bad9b0e26bcc7cd5f9011f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sat, 3 Feb 2024 20:14:01 -0800 Subject: [PATCH] fix(fmt): remove nightly-only fmt flags --- rustfmt.toml | 2 -- src/protocol.rs | 2 -- tests/graphical.rs | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index 8f9ebdd4..3a26366d 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1 @@ edition = "2021" -wrap_comments = true -format_code_in_doc_comments = true diff --git a/src/protocol.rs b/src/protocol.rs index 4c0101f3..6b98a971 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -191,8 +191,6 @@ pub enum Severity { Error, } - - #[cfg(feature = "serde")] #[test] fn test_serialize_severity() { diff --git a/tests/graphical.rs b/tests/graphical.rs index 86d79e13..456231a7 100644 --- a/tests/graphical.rs +++ b/tests/graphical.rs @@ -1855,7 +1855,7 @@ fn syntax_highlighter_on_real_file() { ); assert!(out.contains("\u{1b}[38;2;180;142;173m")); assert_eq!(expected, strip_ansi_escapes::strip_str(out)); - } +} #[test] fn triple_adjacent_highlight() -> Result<(), MietteError> {