rename Query::map() to try_map() and nail down some semantics

This commit is contained in:
Austin Bonander
2020-03-05 19:03:23 -08:00
committed by Ryan Leckey
parent 255dce1f06
commit 9cd3f5e75b
2 changed files with 33 additions and 38 deletions

View File

@@ -81,22 +81,6 @@ where
}
}
#[allow(unused_macros)]
macro_rules! impl_execute_for_query {
($db:ty) => {
impl<'q> $crate::executor::Execute<'q, $db> for $crate::query::Query<'q, $db> {
fn into_parts(
self,
) -> (
&'q str,
Option<<$db as $crate::database::Database>::Arguments>,
) {
(self.query, Some(self.arguments))
}
}
};
}
impl<T> Executor for &'_ mut T
where
T: Executor,