We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1281562 + 141206a commit 0bae055Copy full SHA for 0bae055
src/level.rs
@@ -65,6 +65,11 @@ impl<'a> Level<'a> {
65
level: self.level,
66
}
67
68
+
69
+ /// Do not show the [`Level`]s name
70
+ pub fn no_name(self) -> Level<'a> {
71
+ self.with_name(None::<&str>)
72
+ }
73
74
75
impl<'a> Level<'a> {
tests/formatter.rs
@@ -2397,7 +2397,7 @@ fn secondary_title_no_level_text() {
2397
)
2398
.element(
2399
Level::NOTE
2400
- .with_name(None::<&str>)
+ .no_name()
2401
.title("expected reference `&str`\nfound reference `&'static [u8; 0]`"),
2402
),
2403
];
0 commit comments