Skip to content

Commit

Permalink
revert const that requires const_trait_impl unstable feature
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Aug 5, 2024
1 parent 1b5ddee commit 62b10f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 62b10f0

Please sign in to comment.