about summary refs log tree commit diff
path: root/src/libcore/path.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-12-13 15:55:05 -0800
committerBrian Anderson <banderson@mozilla.com>2012-12-13 16:15:08 -0800
commite7ef82dd7079bbbdb9db0c22fde0c750b2e4de8c (patch)
tree58118edb33536c8c69df4126b6e5f03ee4c626d8 /src/libcore/path.rs
parent732c39c183bf6a2633095557aa9a3c3c48b84b1b (diff)
Change some uses of static methods to use the trait path
Diffstat (limited to 'src/libcore/path.rs')
-rw-r--r--src/libcore/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/path.rs b/src/libcore/path.rs
index cdd66364c11..65ed3515931 100644
--- a/src/libcore/path.rs
+++ b/src/libcore/path.rs
@@ -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 {