about summary refs log tree commit diff
path: root/src/librustpkg/util.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-05-31 15:17:22 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-06-01 09:18:27 -0700
commit5fb254695b4db9af3d8e33577fae28ae9f7006c5 (patch)
tree33a4db59bd936a73594ca144e809b6074d6ccef3 /src/librustpkg/util.rs
parent1e52eede31a1df3627bfa9f43b9d06c730895c01 (diff)
downloadrust-5fb254695b4db9af3d8e33577fae28ae9f7006c5.tar.gz
rust-5fb254695b4db9af3d8e33577fae28ae9f7006c5.zip
Remove all uses of `pub impl`. rs=style
Diffstat (limited to 'src/librustpkg/util.rs')
-rw-r--r--src/librustpkg/util.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index 8019b3b8afb..34fd719fc4c 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -107,8 +107,8 @@ pub struct PkgId {
     version: Version
 }
 
-pub impl PkgId {
-    fn new(s: &str) -> PkgId {
+impl PkgId {
+    pub fn new(s: &str) -> PkgId {
         use conditions::bad_pkg_id::cond;
 
         let p = Path(s);
@@ -129,13 +129,13 @@ pub impl PkgId {
         }
     }
 
-    fn hash(&self) -> ~str {
+    pub fn hash(&self) -> ~str {
         fmt!("%s-%s-%s", self.remote_path.to_str(),
              hash(self.remote_path.to_str() + self.version.to_str()),
              self.version.to_str())
     }
 
-    fn short_name_with_version(&self) -> ~str {
+    pub fn short_name_with_version(&self) -> ~str {
         fmt!("%s-%s", self.short_name, self.version.to_str())
     }
 }