From 62b10f015b2eaa8a16e70bd0f4938db2d17a8597 Mon Sep 17 00:00:00 2001 From: tison Date: Mon, 5 Aug 2024 17:50:36 +0800 Subject: [PATCH] revert const that requires const_trait_impl unstable feature Signed-off-by: tison --- src/style.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style.rs b/src/style.rs index d4d3b7c..3f488bd 100644 --- a/src/style.rs +++ b/src/style.rs @@ -273,7 +273,7 @@ impl Style { /// assert_eq!(true, Style::default().is_plain()); /// assert_eq!(false, Style::default().bold().is_plain()); /// ``` - pub const fn is_plain(self) -> bool { + pub fn is_plain(self) -> bool { self == Style::new() } }