Debian Codegraph @

debian/patches/allow-bindings_with_variant_name-lint.patch

raw
1 From 888dfce54502751f60be72e6d7c89e57a900edd5 Mon Sep 17 00:00:00 2001
2 From: Fabio Valentini <[email protected]>
3 Date: Thu, 23 Mar 2023 14:15:09 +0100
4 Subject: allow "bindings_with_variant_name" lint where necessary
5 Forwarded: not-needed
6 Origin: https://github.com/tomprogrammer/rust-ascii/pull/98
7
8 ---
9 src/ascii_char.rs | 1 +
10 src/ascii_string.rs | 1 +
11 2 files changed, 2 insertions(+)
12
13 diff --git a/src/ascii_char.rs b/src/ascii_char.rs
14 index 68d3c00..39f2ceb 100644
15 --- a/src/ascii_char.rs
16 +++ b/src/ascii_char.rs
17 @@ -295,6 +295,7 @@ impl AsciiChar {
18 ///
19 /// # Example
20 /// ```
21 + /// # #![allow(bindings_with_variant_name)]
22 /// # use ascii::AsciiChar;
23 /// let a = AsciiChar::from_ascii('g').unwrap();
24 /// assert_eq!(a.as_char(), 'g');
25 diff --git a/src/ascii_string.rs b/src/ascii_string.rs
26 index 4cb6a17..b6d2b0b 100644
27 --- a/src/ascii_string.rs
28 +++ b/src/ascii_string.rs
29 @@ -308,6 +308,7 @@ impl AsciiString {
30 ///
31 /// # Examples
32 /// ```
33 + /// # #![allow(bindings_with_variant_name)]
34 /// # use ascii::AsciiString;
35 /// let mut s = AsciiString::from_ascii("foo").unwrap();
36 /// assert_eq!(s.pop().map(|c| c.as_char()), Some('o'));