Skip to content

doc Client::connect method. #1554

doc Client::connect method.

doc Client::connect method. #1554

GitHub Actions / clippy succeeded Mar 22, 2024 in 0s

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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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