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

View file

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