Revert "refactor(mysql): remove unused close! macro"

This reverts commit 424d4b7aa10bf15dbcd8128c2a186781d9c36608.
This commit is contained in:
Ryan Leckey 2021-03-25 09:41:54 -07:00
parent a5cdb9ffd4
commit 7acda184a8

View File

@ -213,3 +213,13 @@ impl<Rt: Runtime> MySqlStream<Rt> {
Ok(())
}
}
macro_rules! close {
(@blocking $self:ident) => {
$self.close_blocking()?
};
($self:ident) => {
$self.close_async().await?
};
}