Skip to content

Commit

Permalink
Delete deprecated AsciiExt extension trait import
Browse files Browse the repository at this point in the history
This has been superseded by inherent methods since Rust 1.26.
  • Loading branch information
dtolnay committed Jul 26, 2023
1 parent 30f79b3 commit 26e2ef0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions serde_derive/src/internals/case.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
//! Code to convert the Rust-styled field/variant (e.g. `my_field`, `MyType`) to the
//! case of the source (e.g. `my-field`, `MY_FIELD`).

// See https://users.rust-lang.org/t/psa-dealing-with-warning-unused-import-std-ascii-asciiext-in-today-s-nightly/13726
#[allow(deprecated, unused_imports)]
use std::ascii::AsciiExt;

use std::fmt::{self, Debug, Display};

use self::RenameRule::*;
Expand Down

0 comments on commit 26e2ef0

Please sign in to comment.