mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix mem_replace_with_default warnings (#31921)
This commit is contained in:
parent
7100465d1a
commit
66ad795014
7 changed files with 9 additions and 22 deletions
|
@ -1401,10 +1401,7 @@ impl NetworkDecoder {
|
|||
|
||||
fn decode(&mut self, chunk: Vec<u8>) -> StrTendril {
|
||||
self.decoder.process(ByteTendril::from(&*chunk));
|
||||
mem::replace(
|
||||
&mut self.decoder.inner_sink_mut().output,
|
||||
Default::default(),
|
||||
)
|
||||
std::mem::take(&mut self.decoder.inner_sink_mut().output)
|
||||
}
|
||||
|
||||
fn finish(self) -> StrTendril {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue