query_macros: allow Option<&str> to be passed in place of String

closes #93
This commit is contained in:
Austin Bonander
2020-01-27 19:02:46 -08:00
committed by Ryan Leckey
parent 4163388298
commit 800af574c5
13 changed files with 266 additions and 144 deletions

View File

@@ -75,10 +75,6 @@ where
}
fn size_hint(&self) -> usize {
if self.is_some() {
(*self).size_hint()
} else {
0
}
self.as_ref().map_or(0, Encode::size_hint)
}
}