about summary refs log tree commit diff
path: root/src/libstd/net_url.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-21 19:07:54 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-22 10:27:39 -0700
commit4634f7edaefafa3e5ece93499e08992b4c8c7145 (patch)
treeaa695c6ea7ffa0d19919584e9636b3f78b1f40ab /src/libstd/net_url.rs
parent1616ffd0c2627502b1015b6388480ed7429ef042 (diff)
downloadrust-4634f7edaefafa3e5ece93499e08992b4c8c7145.tar.gz
rust-4634f7edaefafa3e5ece93499e08992b4c8c7145.zip
librustc: Remove all uses of `static` from functions. rs=destatic
Diffstat (limited to 'src/libstd/net_url.rs')
-rw-r--r--src/libstd/net_url.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs
index 6fb4f6747a3..49dc6f90740 100644
--- a/src/libstd/net_url.rs
+++ b/src/libstd/net_url.rs
@@ -45,7 +45,7 @@ struct UserInfo {
 pub type Query = ~[(~str, ~str)];
 
 pub impl Url {
-    static pure fn new(
+    pure fn new(
         scheme: ~str,
         user: Option<UserInfo>,
         host: ~str,
@@ -67,7 +67,7 @@ pub impl Url {
 }
 
 pub impl UserInfo {
-    static pure fn new(user: ~str, pass: Option<~str>) -> UserInfo {
+    pure fn new(user: ~str, pass: Option<~str>) -> UserInfo {
         UserInfo { user: user, pass: pass }
     }
 }
@@ -666,7 +666,7 @@ pub pure fn from_str(rawurl: &str) -> Result<Url, ~str> {
 }
 
 impl FromStr for Url {
-    static pure fn from_str(s: &str) -> Option<Url> {
+    pure fn from_str(s: &str) -> Option<Url> {
         match from_str(s) {
             Ok(url) => Some(url),
             Err(_) => None