mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix: resolve new future-incompatible lint, trailing ; on macros
This commit is contained in:
parent
51cf310b61
commit
562ea39ee3
@ -108,19 +108,19 @@ macro_rules! read {
|
||||
}};
|
||||
|
||||
(@blocking @flush $self:ident) => {
|
||||
$self.flush()?;
|
||||
$self.flush()?
|
||||
};
|
||||
|
||||
(@flush $self:ident) => {
|
||||
$self.flush_async().await?;
|
||||
$self.flush_async().await?
|
||||
};
|
||||
|
||||
(@blocking @read $self:ident, $b:ident) => {
|
||||
$self.stream.read($b)?;
|
||||
$self.stream.read($b)?
|
||||
};
|
||||
|
||||
(@read $self:ident, $b:ident) => {
|
||||
$self.stream.read_async($b).await?;
|
||||
$self.stream.read_async($b).await?
|
||||
};
|
||||
}
|
||||
|
||||
@ -147,11 +147,11 @@ macro_rules! flush {
|
||||
}};
|
||||
|
||||
(@blocking @write $self:ident, $b:expr) => {
|
||||
$self.stream.write($b)?;
|
||||
$self.stream.write($b)?
|
||||
};
|
||||
|
||||
(@write $self:ident, $b:expr) => {
|
||||
$self.stream.write_async($b).await?;
|
||||
$self.stream.write_async($b).await?
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -103,11 +103,11 @@ impl<Rt: Runtime> MySqlConnection<Rt> {
|
||||
|
||||
macro_rules! impl_connect {
|
||||
(@blocking @new $options:ident) => {
|
||||
NetStream::connect($options.address.as_ref())?;
|
||||
NetStream::connect($options.address.as_ref())?
|
||||
};
|
||||
|
||||
(@new $options:ident) => {
|
||||
NetStream::connect_async($options.address.as_ref()).await?;
|
||||
NetStream::connect_async($options.address.as_ref()).await?
|
||||
};
|
||||
|
||||
($(@$blocking:ident)? $options:ident) => {{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user