mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Revert "refactor(mysql): remove unused close! macro"
This reverts commit 424d4b7aa10bf15dbcd8128c2a186781d9c36608.
This commit is contained in:
parent
a5cdb9ffd4
commit
7acda184a8
@ -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?
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user