doc Client::connect method. #1554
clippy
6 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 6 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0-nightly (0ad927c0c 2024-03-21)
- cargo 1.79.0-nightly (d438c80c4 2024-03-19)
- clippy 0.1.78 (0ad927c 2024-03-21)
Annotations
Check warning on line 279 in web/src/lib.rs
github-actions / clippy
item has both inner and outer attributes
warning: item has both inner and outer attributes
--> web/src/lib.rs:277:1
|
277 | / #[cfg(feature = "codegen")]
278 | | pub mod codegen {
279 | | //! macro code generation module.
| |_____________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default
Check warning on line 279 in web/src/lib.rs
github-actions / clippy
item has both inner and outer attributes
warning: item has both inner and outer attributes
--> web/src/lib.rs:277:1
|
277 | / #[cfg(feature = "codegen")]
278 | | pub mod codegen {
279 | | //! macro code generation module.
| |_____________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default
Check warning on line 225 in http-ws/src/proto.rs
github-actions / clippy
item has both inner and outer attributes
warning: item has both inner and outer attributes
--> http-ws/src/proto.rs:223:1
|
223 | / #[cfg(test)]
224 | | mod test {
225 | | #![allow(unused_imports, unused_variables, dead_code)]
| |__________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default
Check warning on line 232 in postgres/src/driver/quic.rs
github-actions / clippy
impl trait in impl method signature does not match trait method signature
warning: impl trait in impl method signature does not match trait method signature
--> postgres/src/driver/quic.rs:232:27
|
232 | fn recv(&mut self) -> Pin<Box<dyn Future<Output = Result<backend::Message, Error>> + Send + '_>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: postgres/src/driver.rs:241:27
|
241 | fn recv(&mut self) -> impl Future<Output = Result<backend::Message, Error>> + Send;
| ------------------------------------------------------------ return type from trait method defined here
|
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
= note: we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
help: replace the return type so that it matches the trait
|
232 | fn recv(&mut self) -> impl std::future::Future<Output = std::result::Result<postgres_protocol::message::backend::Message, error::Error>> + std::marker::Send {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check warning on line 225 in postgres/src/driver/quic.rs
github-actions / clippy
impl trait in impl method signature does not match trait method signature
warning: impl trait in impl method signature does not match trait method signature
--> postgres/src/driver/quic.rs:225:42
|
225 | fn send(&mut self, msg: BytesMut) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: postgres/src/driver.rs:239:42
|
239 | fn send(&mut self, msg: BytesMut) -> impl Future<Output = Result<(), Error>> + Send;
| ---------------------------------------------- return type from trait method defined here
|
= note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
= note: we are soliciting feedback, see issue #121718 <https://github.com/rust-lang/rust/issues/121718> for more information
= note: `#[warn(refining_impl_trait_internal)]` on by default
help: replace the return type so that it matches the trait
|
225 | fn send(&mut self, msg: BytesMut) -> impl std::future::Future<Output = std::result::Result<(), error::Error>> + std::marker::Send {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check warning on line 225 in http-ws/src/proto.rs
github-actions / clippy
item has both inner and outer attributes
warning: item has both inner and outer attributes
--> http-ws/src/proto.rs:223:1
|
223 | / #[cfg(test)]
224 | | mod test {
225 | | #![allow(unused_imports, unused_variables, dead_code)]
| |__________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default