Merge pull request #3001 from jxs/master

remove unnecessary clone usage
This commit is contained in:
Jack Moffitt 2014-08-04 10:15:53 -06:00
commit 9e834ee8a4
2 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,7 @@ impl ImageCacheTask {
spawn(proc() { spawn(proc() {
let mut cache = ImageCache { let mut cache = ImageCache {
resource_task: resource_task.clone(), resource_task: resource_task,
port: port, port: port,
chan: chan_clone, chan: chan_clone,
state_map: HashMap::new(), state_map: HashMap::new(),
@ -104,7 +104,7 @@ impl ImageCacheTask {
let (chan, port) = channel(); let (chan, port) = channel();
spawn(proc() { spawn(proc() {
let inner_cache = ImageCacheTask::new(resource_task.clone()); let inner_cache = ImageCacheTask::new(resource_task);
loop { loop {
let msg: Msg = port.recv(); let msg: Msg = port.recv();

View file

@ -202,7 +202,7 @@ impl ResourceManager {
loop { loop {
match self.from_client.recv() { match self.from_client.recv() {
Load(load_data, start_chan) => { Load(load_data, start_chan) => {
self.load(load_data.clone(), start_chan) self.load(load_data, start_chan)
} }
Exit => { Exit => {
break break