mirror of
https://github.com/servo/servo.git
synced 2025-10-08 04:29:24 +01:00
Trait changes, and eliminate 'copy'
This commit is contained in:
parent
907d9f23cf
commit
ffe60ea027
30 changed files with 111 additions and 100 deletions
|
@ -142,7 +142,7 @@ fn test_bad_scheme() {
|
|||
fn should_delegate_to_scheme_loader() {
|
||||
let payload = ~[1, 2, 3];
|
||||
let loader_factory = |_url: Url, progress_chan: Chan<ProgressMsg>| {
|
||||
progress_chan.send(Payload(copy payload));
|
||||
progress_chan.send(Payload(payload.clone()));
|
||||
progress_chan.send(Done(Ok(())));
|
||||
};
|
||||
let loader_factories = ~[(~"snicklefritz", loader_factory)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue