From adaafdd7043507cbceae65e78c38954e47103b5c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 11 May 2020 11:33:45 -0400 Subject: Fix some clippy lints --- src/metric/soft.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/metric/soft.rs') diff --git a/src/metric/soft.rs b/src/metric/soft.rs index 0d7dcdb..d443bfd 100644 --- a/src/metric/soft.rs +++ b/src/metric/soft.rs @@ -82,6 +82,16 @@ where } } +impl Default for SoftSearch +where + T: SoftDelete, + U: FromIterator + IntoIterator, +{ + fn default() -> Self { + Self::new() + } +} + impl> Extend for SoftSearch { fn extend>(&mut self, iter: I) { self.0.extend(iter); -- cgit v1.2.3