mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: fixed some warnings in components/script (#31888)
This commit is contained in:
parent
8dece05980
commit
92b557867c
11 changed files with 39 additions and 40 deletions
|
@ -414,7 +414,7 @@ impl FetchResponseListener for EventSourceContext {
|
|||
}
|
||||
|
||||
fn process_response_eof(&mut self, _response: Result<ResourceFetchTiming, NetworkError>) {
|
||||
if let Some(_) = self.incomplete_utf8.take() {
|
||||
if self.incomplete_utf8.take().is_some() {
|
||||
self.parse("\u{FFFD}".chars());
|
||||
}
|
||||
self.reestablish_the_connection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue