mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Merge pull request #3001 from jxs/master
remove unnecessary clone usage
This commit is contained in:
commit
9e834ee8a4
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue