mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-21 01:23:59 +00:00
query_macros: allow Option<&str> to be passed in place of String
closes #93
This commit is contained in:
committed by
Ryan Leckey
parent
4163388298
commit
800af574c5
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user