Skip to content

sqlx lifetimes issue #1

sqlx lifetimes issue

sqlx lifetimes issue #1

GitHub Actions / clippy failed Aug 16, 2024 in 1s

clippy

11 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 11
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 262 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

error: missing documentation for a method
   --> crates/chain/src/sqlx_impl.rs:259:5
    |
259 | /     pub async fn persist_to_postgres(
260 | |         &self,
261 | |         db_tx: &mut sqlx::Transaction<'_, sqlx::Postgres>,
262 | |     ) -> sqlx::Result<()> {
    | |_________________________^

Check failure on line 236 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for an associated function

error: missing documentation for an associated function
   --> crates/chain/src/sqlx_impl.rs:234:5
    |
234 | /     pub async fn from_postgres(
235 | |         db_tx: &mut sqlx::Transaction<'_, sqlx::Postgres>,
236 | |     ) -> sqlx::Result<Self> {
    | |___________________________^

Check failure on line 162 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

error: missing documentation for a method
   --> crates/chain/src/sqlx_impl.rs:159:5
    |
159 | /     pub async fn persist_to_postgres(
160 | |         &self,
161 | |         db_tx: &mut sqlx::Transaction<'_, sqlx::Postgres>,
162 | |     ) -> sqlx::Result<()> {
    | |_________________________^

Check failure on line 82 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for an associated function

error: missing documentation for an associated function
  --> crates/chain/src/sqlx_impl.rs:80:5
   |
80 | /     pub async fn from_postgres(
81 | |         db_tx: &mut sqlx::Transaction<'_, sqlx::Postgres>,
82 | |     ) -> sqlx::Result<Self> {
   | |___________________________^

Check failure on line 48 in crates/chain/src/persist.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a type alias

error: missing documentation for a type alias
  --> crates/chain/src/persist.rs:48:1
   |
48 | pub type FutureResult<'a, T, E> = Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'a>>;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D missing-docs` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(missing_docs)]`

Check failure on line 5 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `Encodable`

error: unused import: `Encodable`
 --> crates/chain/src/sqlx_impl.rs:5:37
  |
5 | use bitcoin::consensus::{Decodable, Encodable};
  |                                     ^^^^^^^^^

Check failure on line 12 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `Acquire`

error: unused import: `Acquire`
  --> crates/chain/src/sqlx_impl.rs:12:13
   |
12 | use sqlx::{ Acquire, Postgres, Row};
   |             ^^^^^^^

Check failure on line 303 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `db_tx`

error: unused variable: `db_tx`
   --> crates/chain/src/sqlx_impl.rs:303:9
    |
303 |         db_tx: &mut sqlx::Transaction<'_, sqlx::Postgres>,
    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_db_tx`

Check failure on line 226 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `db_tx`

error: unused variable: `db_tx`
   --> crates/chain/src/sqlx_impl.rs:226:9
    |
226 |         db_tx: &mut sqlx::Transaction<'_, sqlx::Postgres>,
    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_db_tx`

Check failure on line 36 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `db_tx`

error: unused variable: `db_tx`
  --> crates/chain/src/sqlx_impl.rs:36:9
   |
36 |         db_tx: &mut sqlx::Transaction<'_, sqlx::Postgres>,
   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_db_tx`
   |
   = note: `-D unused-variables` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_variables)]`

Check failure on line 12 in crates/chain/src/sqlx_impl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `Postgres`

error: unused import: `Postgres`
  --> crates/chain/src/sqlx_impl.rs:12:22
   |
12 | use sqlx::{ Acquire, Postgres, Row};
   |                      ^^^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`