Skip to content

Commit 4955dd5

Browse files
committed
Suppress some new dead_code warnings
Bisects to rust-lang/rust#141407. warning: function `unindent` is never used --> src/unindent.rs:3:8 | 3 | pub fn unindent(s: &str) -> String { | ^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: function `unindent_bytes` is never used --> src/unindent.rs:10:8 | 10 | pub fn unindent_bytes(s: &[u8]) -> Vec<u8> { | ^^^^^^^^^^^^^^ warning: trait `Unindent` is never used --> src/unindent.rs:53:11 | 53 | pub trait Unindent { | ^^^^^^^^
1 parent e168508 commit 4955dd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134

135135
mod error;
136136
mod expr;
137+
#[allow(dead_code)]
137138
mod unindent;
138139

139140
use crate::error::{Error, Result};

0 commit comments

Comments
 (0)