Skip to content

Commit 888dfce

Browse files
decathorpetormol
authored andcommitted
allow "bindings_with_variant_name" lint where necessary
1 parent 7203d9a commit 888dfce

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ascii_char.rs

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ impl AsciiChar {
295295
///
296296
/// # Example
297297
/// ```
298+
/// # #![allow(bindings_with_variant_name)]
298299
/// # use ascii::AsciiChar;
299300
/// let a = AsciiChar::from_ascii('g').unwrap();
300301
/// assert_eq!(a.as_char(), 'g');

src/ascii_string.rs

+1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ impl AsciiString {
308308
///
309309
/// # Examples
310310
/// ```
311+
/// # #![allow(bindings_with_variant_name)]
311312
/// # use ascii::AsciiString;
312313
/// let mut s = AsciiString::from_ascii("foo").unwrap();
313314
/// assert_eq!(s.pop().map(|c| c.as_char()), Some('o'));

0 commit comments

Comments
 (0)