MAINT: Port to Rust 2018 edition

This commit is contained in:
bluss
2019-09-02 22:07:30 +02:00
parent f952e2c788
commit e86a32d454
6 changed files with 16 additions and 15 deletions
+3 -3
View File
@@ -258,8 +258,8 @@ fn test_extend() {
#[test]
fn test_is_send_sync() {
let data = ArrayVec::<[Vec<i32>; 5]>::new();
&data as &Send;
&data as &Sync;
&data as &dyn Send;
&data as &dyn Sync;
}
#[test]
@@ -470,7 +470,7 @@ fn test_string() {
assert_eq!(tmut, "ab");
// Test Error trait / try
let t = || -> Result<(), Box<Error>> {
let t = || -> Result<(), Box<dyn Error>> {
let mut t = ArrayString::<[_; 2]>::new();
t.try_push_str(text)?;
Ok(())