Skip to content

Commit c9bc0f3

Browse files
committed
style: satisfy clippy
1 parent 77da947 commit c9bc0f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/rowbinary/de.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<'de, B: Buf> RowBinaryDeserializer<'de, B> {
4040
return Err(Error::TooSmallBuffer(size - self.temp_buf.len()));
4141
}
4242

43-
let temp_buf = mem::replace(&mut self.temp_buf, &mut []);
43+
let temp_buf = mem::take(&mut self.temp_buf);
4444
let (slice, rest) = temp_buf.split_at_mut(size);
4545
self.temp_buf = rest;
4646
self.input.copy_to_slice(slice);

src/watch.rs

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ impl<T> RowCursor<T> {
190190

191191
// === CursorWithInit ===
192192

193+
#[allow(clippy::large_enum_variant)]
193194
enum CursorWithInit<T> {
194195
Preparing(Client, WatchParams),
195196
Fetching(JsonCursor<T>),

0 commit comments

Comments
 (0)