diff options
| author | Jakub Wieczorek <jakub@jakub.cc> | 2014-06-06 15:51:42 +0200 |
|---|---|---|
| committer | Jakub Wieczorek <jakub@jakub.cc> | 2014-06-08 13:36:28 +0200 |
| commit | f7d86b2f4ace416a65e84603082c756b8b5dc43e (patch) | |
| tree | 9c47bd9132d7f323bde048e1fe1998c2d5a01692 /src/libstd/task.rs | |
| parent | 0271224bdae26260ab498f47323997f9edb5879e (diff) | |
| download | rust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.tar.gz rust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.zip | |
Remove the dead code identified by the new lint
Diffstat (limited to 'src/libstd/task.rs')
| -rw-r--r-- | src/libstd/task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs index 9ee62ee3d81..a4e1ad84252 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -84,7 +84,7 @@ pub struct TaskBuilder { /// Options to spawn the new task with pub opts: TaskOpts, gen_body: Option<proc(v: proc():Send):Send -> proc():Send>, - nocopy: Option<marker::NoCopy>, + nocopy: marker::NoCopy, } impl TaskBuilder { @@ -94,7 +94,7 @@ impl TaskBuilder { TaskBuilder { opts: TaskOpts::new(), gen_body: None, - nocopy: None, + nocopy: marker::NoCopy, } } |
