Skip to content

Commit c3ddcae

Browse files
committed
Update rust edition
1 parent c3c2a13 commit c3ddcae

File tree

6 files changed

+3
-5
lines changed

6 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
88
readme = "README.md"
99
keywords = ["string", "generic", "array", "stack", "no_std"]
1010
categories = ["data-structures"]
11-
edition = "2018"
11+
edition = "2021"
1212

1313
[lib]
1414
name = "arraystring"

benches/string.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use arraystring::prelude::*;
22
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
33
use inlinable_string::{InlinableString, InlineString, StringExt};
4-
use std::convert::TryFrom;
54
use std::time::Duration;
65

76
const TIME: u64 = 500;

src/arraystring.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! `ArrayString` definition and Api implementation
2+
#![allow(clippy::len_without_is_empty)]
23

34
use crate::arraystring::sealed::ValidCapacity;
45
use crate::utils::{is_char_boundary, is_inside_boundary};

src/implementations.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use crate::{arraystring::sealed::ValidCapacity, prelude::*};
44
use core::fmt::{self, Debug, Display, Formatter, Write};
5-
use core::iter::FromIterator;
65
use core::ops::{Add, Deref, DerefMut, Index, IndexMut};
76
use core::ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo, RangeToInclusive};
87
use core::str::{self, FromStr};

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ pub type MaxString = ArrayString<255>;
151151
mod cache_string {
152152
use crate::{prelude::*, Error};
153153
use core::fmt::{self, Debug, Display, Formatter, Write};
154-
use core::iter::FromIterator;
155154
use core::{borrow::Borrow, borrow::BorrowMut, ops::*};
156155
use core::{cmp::Ordering, hash::Hash, hash::Hasher, str::FromStr};
157156

tests/string_parity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use arraystring::prelude::*;
22
use std::panic::{catch_unwind, AssertUnwindSafe, RefUnwindSafe};
3-
use std::{fmt::Debug, iter::FromIterator};
3+
use std::fmt::Debug;
44

55
type TestString = ArrayString<255>;
66

0 commit comments

Comments
 (0)