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/libstd/workcache.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/libstd/workcache.rs')
| -rw-r--r-- | src/libstd/workcache.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs index f8b4337e437..46335d062b4 100644 --- a/src/libstd/workcache.rs +++ b/src/libstd/workcache.rs @@ -132,7 +132,7 @@ impl cmp::Ord for WorkKey { } pub impl WorkKey { - static fn new(kind: &str, name: &str) -> WorkKey { + fn new(kind: &str, name: &str) -> WorkKey { WorkKey { kind: kind.to_owned(), name: name.to_owned() } } } @@ -151,7 +151,7 @@ impl<S:Encoder> Encodable<S> for WorkMap { } impl<D:Decoder> Decodable<D> for WorkMap { - static fn decode(&self, d: &D) -> WorkMap { + fn decode(d: &D) -> WorkMap { let v : ~[(WorkKey,~str)] = Decodable::decode(d); let mut w = LinearMap::new(); for v.each |&(k, v)| { @@ -258,7 +258,7 @@ fn digest_file(path: &Path) -> ~str { pub impl Context { - static fn new(db: @Mut<Database>, + fn new(db: @Mut<Database>, lg: @Mut<Logger>, cfg: @json::Object) -> Context { Context{db: db, logger: lg, cfg: cfg, freshness: LinearMap::new()} @@ -367,7 +367,7 @@ impl TPrep for @Mut<Prep> { pub impl<T:Owned + Encodable<json::Encoder> + Decodable<json::Decoder/&static>> Work<T> { // FIXME(#5121) - static fn new(p: @Mut<Prep>, e: Either<T,PortOne<(Exec,T)>>) -> Work<T> { + fn new(p: @Mut<Prep>, e: Either<T,PortOne<(Exec,T)>>) -> Work<T> { Work { prep: p, res: Some(e) } } } |
