Skip to content

Commit ce4dea2

Browse files
tormolThomas Bahn
authored andcommitted
Decrease minimum Rust version to 1.33.0
1 parent fc52ba6 commit ce4dea2

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rust:
55
- nightly
66
- beta
77
- stable
8-
- 1.36.0
8+
- 1.33.0
99

1010
before_script:
1111
- |

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ ascii = { version = "0.9", default-features = false }
3232

3333
## Minimum supported Rust version
3434

35-
The minimum supported Rust version for 1.0.\* releases is 1.36.0.
35+
The minimum Rust version for 1.0.\* releases is 1.33.0.
3636
Later 1.y.0 releases might require newer Rust versions, but the three most
3737
recent stable releases at the time of publishing will always be supported.
38-
For example this means that if the current stable Rust version is 1.44 when
38+
For example this means that if the current stable Rust version is 1.38 when
3939
ascii 1.1.0 is released, then ascii 1.1.* will not require a newer
40-
Rust version than 1.42.
40+
Rust version than 1.36.
4141

4242
## History
4343

src/ascii_str.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,14 +1152,16 @@ mod tests {
11521152
#[test]
11531153
fn index() {
11541154
let mut arr = [AsciiChar::A, AsciiChar::B, AsciiChar::C, AsciiChar::D];
1155-
let a: &AsciiStr = arr[..].into();
1156-
assert_eq!(a[..].as_slice(), &a.as_slice()[..]);
1157-
assert_eq!(a[..4].as_slice(), &a.as_slice()[..4]);
1158-
assert_eq!(a[4..].as_slice(), &a.as_slice()[4..]);
1159-
assert_eq!(a[2..3].as_slice(), &a.as_slice()[2..3]);
1160-
assert_eq!(a[..=3].as_slice(), &a.as_slice()[..=3]);
1161-
assert_eq!(a[1..=1].as_slice(), &a.as_slice()[1..=1]);
1162-
let mut copy = arr.clone();
1155+
{
1156+
let a: &AsciiStr = arr[..].into();
1157+
assert_eq!(a[..].as_slice(), &a.as_slice()[..]);
1158+
assert_eq!(a[..4].as_slice(), &a.as_slice()[..4]);
1159+
assert_eq!(a[4..].as_slice(), &a.as_slice()[4..]);
1160+
assert_eq!(a[2..3].as_slice(), &a.as_slice()[2..3]);
1161+
assert_eq!(a[..=3].as_slice(), &a.as_slice()[..=3]);
1162+
assert_eq!(a[1..=1].as_slice(), &a.as_slice()[1..=1]);
1163+
}
1164+
let mut copy = arr;
11631165
let a_mut: &mut AsciiStr = {&mut arr[..]}.into();
11641166
assert_eq!(a_mut[..].as_mut_slice(), &mut copy[..]);
11651167
assert_eq!(a_mut[..2].as_mut_slice(), &mut copy[..2]);

src/ascii_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ impl<'a> From<&'a AsciiStr> for AsciiString {
451451
impl<'a> From<&'a [AsciiChar]> for AsciiString {
452452
#[inline]
453453
fn from(s: &'a [AsciiChar]) -> AsciiString {
454-
s.iter().copied().collect()
454+
s.iter().cloned().collect()
455455
}
456456
}
457457

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
//!
1818
//! # Minimum supported Rust version
1919
//!
20-
//! The minimum supported Rust version for 1.0.\* releases is 1.36.0.
20+
//! The minimum Rust version for 1.0.\* releases is 1.33.0.
2121
//! Later 1.y.0 releases might require newer Rust versions, but the three most
2222
//! recent stable releases at the time of publishing will always be supported.
23-
//! For example this means that if the current stable Rust version is 1.44 when
23+
//! For example this means that if the current stable Rust version is 1.38 when
2424
//! ascii 1.1.0 is released, then ascii 1.1.* will not require a newer
25-
//! Rust version than 1.42.
25+
//! Rust version than 1.36.
2626
//!
2727
//! # History
2828
//!

0 commit comments

Comments
 (0)