mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -258,7 +258,7 @@ impl EventSourceContext {
|
|||
task!(dispatch_the_event_source_event: move || {
|
||||
let event_source = event_source.root();
|
||||
if event_source.ready_state.get() != ReadyState::Closed {
|
||||
event.root().upcast::<Event>().fire(&event_source.upcast());
|
||||
event.root().upcast::<Event>().fire(event_source.upcast());
|
||||
}
|
||||
}),
|
||||
&global,
|
||||
|
@ -387,7 +387,7 @@ impl FetchResponseListener for EventSourceContext {
|
|||
}
|
||||
|
||||
while !input.is_empty() {
|
||||
match utf8::decode(&input) {
|
||||
match utf8::decode(input) {
|
||||
Ok(s) => {
|
||||
self.parse(s.chars());
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue