diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-21 19:07:54 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-22 10:27:39 -0700 |
| commit | 4634f7edaefafa3e5ece93499e08992b4c8c7145 (patch) | |
| tree | aa695c6ea7ffa0d19919584e9636b3f78b1f40ab /src/libcore/path.rs | |
| parent | 1616ffd0c2627502b1015b6388480ed7429ef042 (diff) | |
| download | rust-4634f7edaefafa3e5ece93499e08992b4c8c7145.tar.gz rust-4634f7edaefafa3e5ece93499e08992b4c8c7145.zip | |
librustc: Remove all uses of `static` from functions. rs=destatic
Diffstat (limited to 'src/libcore/path.rs')
| -rw-r--r-- | src/libcore/path.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/path.rs b/src/libcore/path.rs index df4a3fdfb9e..7189ecaadda 100644 --- a/src/libcore/path.rs +++ b/src/libcore/path.rs @@ -43,7 +43,7 @@ pub pure fn PosixPath(s: &str) -> PosixPath { } pub trait GenericPath { - static pure fn from_str(&str) -> Self; + pure fn from_str(&str) -> Self; pure fn dirname(&self) -> ~str; pure fn filename(&self) -> Option<~str>; @@ -380,7 +380,7 @@ impl ToStr for PosixPath { // PosixPath and WindowsPath, most of their methods are common. impl GenericPath for PosixPath { - static pure fn from_str(s: &str) -> PosixPath { + pure fn from_str(s: &str) -> PosixPath { let mut components = str::split_nonempty(s, |c| c == '/'); let is_absolute = (s.len() != 0 && s[0] == '/' as u8); return PosixPath { is_absolute: is_absolute, @@ -563,7 +563,7 @@ impl ToStr for WindowsPath { impl GenericPath for WindowsPath { - static pure fn from_str(s: &str) -> WindowsPath { + pure fn from_str(s: &str) -> WindowsPath { let host; let device; let rest; |
