diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-11-28 15:42:16 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-11-29 11:06:15 -0800 |
| commit | 9e1c9be16f9140e09f26de947fddf806c27a957f (patch) | |
| tree | 28510160831f6fe9d33336dd67234f4d3b91c841 /src/libstd/future.rs | |
| parent | 5a282ec26fc7587b94e0d86a003abcf1cfd214c1 (diff) | |
| download | rust-9e1c9be16f9140e09f26de947fddf806c27a957f.tar.gz rust-9e1c9be16f9140e09f26de947fddf806c27a957f.zip | |
librustc: Make the Drop trait use explicit self
Diffstat (limited to 'src/libstd/future.rs')
| -rw-r--r-- | src/libstd/future.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/future.rs b/src/libstd/future.rs index 31144740c8a..a22e4d67468 100644 --- a/src/libstd/future.rs +++ b/src/libstd/future.rs @@ -28,7 +28,7 @@ pub struct Future<A> { // FIXME(#2829) -- futures should not be copyable, because they close // over fn~'s that have pipes and so forth within! impl<A> Future<A> : Drop { - fn finalize() {} + fn finalize(&self) {} } priv enum FutureState<A> { |
