Skip to content

Commit a808475

Browse files
committed
Fix clippy
1 parent 5310c83 commit a808475

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/engine.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,7 @@ impl Engine {
254254

255255
/// Serializes the `Engine` into a binary format so that it can be quickly reloaded later.
256256
pub fn serialize(&self) -> Result<Vec<u8>, crate::data_format::SerializationError> {
257-
crate::data_format::serialize_engine(
258-
&self.filter_data_context.as_ref(),
259-
&self.cosmetic_cache,
260-
)
257+
crate::data_format::serialize_engine(&self.filter_data_context, &self.cosmetic_cache)
261258
}
262259

263260
/// Deserialize the `Engine` from the binary format generated by `Engine::serialize`.

src/filters/flat_filter_map.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Holds the implementation of [FlatMapView].
22
3-
use crate::filters::unsafe_tools::fb_vector_to_slice;
3+
//use crate::filters::unsafe_tools::fb_vector_to_slice;
44
use flatbuffers::{Follow, ForwardsUOffset, Vector, WIPOffset};
55
use std::collections::{HashMap, HashSet};
66

@@ -200,6 +200,7 @@ impl<'a, I: Ord + std::hash::Hash + FlatSerialize<'a>, V: FlatSerialize<'a>>
200200
self.map.entry(key).or_default().push(value);
201201
}
202202

203+
#[allow(clippy::type_complexity)]
203204
pub fn finish(
204205
self,
205206
builder: &mut flatbuffers::FlatBufferBuilder<'a>,

0 commit comments

Comments
 (0)