diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-06-02 20:48:53 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-06-06 18:36:15 -0700 |
| commit | bede54b14acb093e86a936d5ba62ff2af8b558d5 (patch) | |
| tree | 1d55f928357e66573d9de0fe6be60174184491b6 /src/libcore/future.rs | |
| parent | ef32ffd0b1602ff87536508a7f75fd9b1510b4e9 (diff) | |
misc. copies in core/syntax to please borrowck
Diffstat (limited to 'src/libcore/future.rs')
| -rw-r--r-- | src/libcore/future.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/future.rs b/src/libcore/future.rs index e0321b45287..6152b83536a 100644 --- a/src/libcore/future.rs +++ b/src/libcore/future.rs @@ -108,7 +108,7 @@ fn get<A:copy>(future: future<A>) -> A { fn with<A,B>(future: future<A>, blk: fn(A) -> B) -> B { #[doc = "Work with the value without copying it"]; - let v = alt future.v { + let v = alt copy future.v { either::left(v) { v } either::right(f) { let v = @f(); |
