core: derive Clone for core types
This commit is contained in:
parent
28efc234f4
commit
2b83defa4a
5 changed files with 6 additions and 5 deletions
|
@ -20,7 +20,7 @@ use option::{None, Option, Some};
|
|||
use str;
|
||||
use to_str::ToStr;
|
||||
|
||||
#[deriving(Eq)]
|
||||
#[deriving(Clone, Eq)]
|
||||
pub struct WindowsPath {
|
||||
host: Option<~str>,
|
||||
device: Option<~str>,
|
||||
|
@ -32,7 +32,7 @@ pub fn WindowsPath(s: &str) -> WindowsPath {
|
|||
GenericPath::from_str(s)
|
||||
}
|
||||
|
||||
#[deriving(Eq)]
|
||||
#[deriving(Clone, Eq)]
|
||||
pub struct PosixPath {
|
||||
is_absolute: bool,
|
||||
components: ~[~str],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue