remove unnecessary clone usage

This commit is contained in:
joaoxsouls 2014-08-04 13:19:35 +01:00
parent db507cab65
commit 605495102c
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