Change some uses of static methods to use the trait path
This commit is contained in:
parent
732c39c183
commit
e7ef82dd70
5 changed files with 10 additions and 11 deletions
|
@ -29,7 +29,7 @@ pub struct WindowsPath {
|
|||
}
|
||||
|
||||
pub pure fn WindowsPath(s: &str) -> WindowsPath {
|
||||
from_str(s)
|
||||
GenericPath::from_str(s)
|
||||
}
|
||||
|
||||
#[deriving_eq]
|
||||
|
@ -39,7 +39,7 @@ pub struct PosixPath {
|
|||
}
|
||||
|
||||
pub pure fn PosixPath(s: &str) -> PosixPath {
|
||||
from_str(s)
|
||||
GenericPath::from_str(s)
|
||||
}
|
||||
|
||||
pub trait GenericPath {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue