Skip to content

Commit a4cc90d

Browse files
committed
cleanup: remove unnecessary 'allow' directives
I probably added these a while ago during some work and forgot to remove them.
1 parent f817560 commit a4cc90d

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

examples/graphemes-std.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ fn main() -> Result<(), Box<dyn Error>> {
1616
.take(10)
1717
.last()
1818
.unwrap_or(line.len());
19-
#[allow(deprecated)] // for Rust 1.28.0
20-
stdout.write_all(line[..end].trim_right().as_bytes())?;
19+
stdout.write_all(line[..end].trim_end().as_bytes())?;
2120
stdout.write_all(b"\n")?;
2221

2322
line.clear();

src/ext_vec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unused_imports)]
2-
31
use std::borrow::Cow;
42
use std::error;
53
use std::ffi::{OsStr, OsString};

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ Windows.
367367
*/
368368

369369
#![cfg_attr(not(feature = "std"), no_std)]
370-
#![allow(dead_code)]
371370

372371
pub use crate::bstr::BStr;
373372
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)