@@ -11,7 +11,6 @@
|
||||
use ascii;
|
||||
use borrow::{Cow, ToOwned, Borrow};
|
||||
use boxed::Box;
|
||||
use clone::Clone;
|
||||
use convert::{Into, From};
|
||||
use cmp::{PartialEq, Eq, PartialOrd, Ord, Ordering};
|
||||
use error::Error;
|
||||
@@ -62,7 +61,7 @@ use vec::Vec;
|
||||
/// }
|
||||
/// # }
|
||||
/// ```
|
||||
#[derive(PartialEq, PartialOrd, Eq, Ord, Hash)]
|
||||
#[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub struct CString {
|
||||
inner: Box<[u8]>,
|
||||
@@ -250,13 +249,6 @@ impl CString {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Clone for CString {
|
||||
fn clone(&self) -> Self {
|
||||
CString { inner: self.inner.to_owned().into_boxed_slice() }
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Deref for CString {
|
||||
type Target = CStr;
|
||||
|
||||
Reference in New Issue
Block a user