diff options
author | François Laignel <fengalin@free.fr> | 2021-06-05 01:16:05 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-06-05 11:36:22 +0300 |
commit | 5439f14e57ad865e8e19b45ac191ed98743d8e2b (patch) | |
tree | be5b86826bb55e6d25121c3ad65560f216844f6c /video/gif | |
parent | 8f8f5bdff70da01e8c518fca3a7a4a5b72a97c68 (diff) |
fix clippy warnings
Diffstat (limited to 'video/gif')
-rw-r--r-- | video/gif/src/gifenc/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index ea432a9be..9311523dc 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -44,7 +44,7 @@ impl CacheBuffer { } pub fn consume(&self) -> Vec<u8> { let mut buffer = self.buffer.borrow_mut(); - std::mem::replace(&mut *buffer, Vec::new()) + std::mem::take(&mut *buffer) } } |