Skip to content

Commit

Permalink
Fix unused import warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
starkat99 committed Apr 6, 2024
1 parent 5ef67a7 commit d5cb60a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Fixed
- `U16String::pop_char` panics with surrogate string. Fixes [#38].
- Various import and new clippy warnings.

## [1.0.2] - 2022-07-15 <a name="1.0.2"></a>
### Fixed
Expand Down
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Errors returned by functions in this crate.

#[cfg(feature = "alloc")]
#[allow(unused_imports)]
use alloc::vec::Vec;

/// An error returned to indicate a problem with nul values occurred.
Expand Down
1 change: 1 addition & 0 deletions src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{
error::{DecodeUtf16Error, DecodeUtf32Error},
is_utf16_high_surrogate, is_utf16_low_surrogate, is_utf16_surrogate,
};
#[allow(unused_imports)]
use core::{
char,
iter::{DoubleEndedIterator, ExactSizeIterator, FusedIterator},
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ extern crate alloc;

use crate::error::{DecodeUtf16Error, DecodeUtf32Error};
#[cfg(feature = "alloc")]
#[allow(unused_imports)]
use alloc::vec::Vec;
use core::fmt::Write;

Expand Down
1 change: 1 addition & 0 deletions src/ucstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
U16Str, U32Str,
};
#[cfg(feature = "alloc")]
#[allow(unused_imports)]
use alloc::{borrow::ToOwned, boxed::Box, string::String};
use core::{
fmt::Write,
Expand Down
1 change: 1 addition & 0 deletions src/ucstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! This module contains wide C strings and related types.

use crate::{error::ContainsNul, U16CStr, U16Str, U16String, U32CStr, U32Str, U32String};
#[allow(unused_imports)]
use alloc::{
borrow::{Cow, ToOwned},
boxed::Box,
Expand Down
1 change: 1 addition & 0 deletions src/ustr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::{
U16String, U32String,
};
#[cfg(feature = "alloc")]
#[allow(unused_imports)]
use alloc::{boxed::Box, string::String, vec::Vec};
use core::{
char,
Expand Down
1 change: 1 addition & 0 deletions src/ustring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! This module contains wide strings and related types.

use crate::{U16CStr, U16CString, U16Str, U32CStr, U32CString, U32Str};
#[allow(unused_imports)]
use alloc::{
borrow::{Cow, ToOwned},
boxed::Box,
Expand Down
1 change: 1 addition & 0 deletions src/utfstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
#[cfg(feature = "alloc")]
use crate::{Utf16String, Utf32String};
#[cfg(feature = "alloc")]
#[allow(unused_imports)]
use alloc::{borrow::Cow, boxed::Box, string::String};
use core::{
convert::{AsMut, AsRef, TryFrom},
Expand Down
1 change: 1 addition & 0 deletions src/utfstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::{
is_utf16_low_surrogate, is_utf16_surrogate, validate_utf16, validate_utf16_vec, validate_utf32,
validate_utf32_vec, Utf16Str, Utf32Str,
};
#[allow(unused_imports)]
use alloc::{
borrow::{Cow, ToOwned},
boxed::Box,
Expand Down

0 comments on commit d5cb60a

Please sign in to comment.