MAINT: Port to Rust 2018 edition
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ pub unsafe trait Array {
|
||||
|
||||
pub trait Index : PartialEq + Copy {
|
||||
fn to_usize(self) -> usize;
|
||||
fn from(usize) -> Self;
|
||||
fn from(_: usize) -> Self;
|
||||
}
|
||||
|
||||
impl Index for () {
|
||||
|
||||
+4
-4
@@ -9,10 +9,10 @@ use std::str::FromStr;
|
||||
use std::str::Utf8Error;
|
||||
use std::slice;
|
||||
|
||||
use array::Array;
|
||||
use array::Index;
|
||||
use CapacityError;
|
||||
use char::encode_utf8;
|
||||
use crate::array::Array;
|
||||
use crate::array::Index;
|
||||
use crate::CapacityError;
|
||||
use crate::char::encode_utf8;
|
||||
|
||||
#[cfg(feature="serde-1")]
|
||||
use serde::{Serialize, Deserialize, Serializer, Deserializer};
|
||||
|
||||
+6
-6
@@ -48,7 +48,7 @@ use std::io;
|
||||
|
||||
|
||||
mod maybe_uninit;
|
||||
use maybe_uninit::MaybeUninit;
|
||||
use crate::maybe_uninit::MaybeUninit;
|
||||
|
||||
#[cfg(feature="serde-1")]
|
||||
use serde::{Serialize, Deserialize, Serializer, Deserializer};
|
||||
@@ -59,11 +59,11 @@ mod char;
|
||||
mod range;
|
||||
mod errors;
|
||||
|
||||
pub use array::Array;
|
||||
pub use range::RangeArgument;
|
||||
use array::Index;
|
||||
pub use array_string::ArrayString;
|
||||
pub use errors::CapacityError;
|
||||
pub use crate::array::Array;
|
||||
pub use crate::range::RangeArgument;
|
||||
use crate::array::Index;
|
||||
pub use crate::array_string::ArrayString;
|
||||
pub use crate::errors::CapacityError;
|
||||
|
||||
|
||||
/// A vector with a fixed capacity.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
use array::Array;
|
||||
use crate::array::Array;
|
||||
use std::mem::MaybeUninit as StdMaybeUninit;
|
||||
|
||||
#[derive(Copy)]
|
||||
|
||||
Reference in New Issue
Block a user