From c20c05cee7b25fe6bc9a638b48a14a4430185edc Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Tue, 27 Jun 2023 17:21:09 +0200 Subject: [PATCH] ci: upgrade lianad clippy to 1.70 --- .github/workflows/main.yml | 2 +- src/bitcoin/d/mod.rs | 7 ++++--- src/bitcoin/mod.rs | 7 ++++--- src/database/mod.rs | 7 ++++--- src/database/sqlite/mod.rs | 17 +++++++++-------- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d612e9fb..9005cff6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions-rs/toolchain@v1 with: - toolchain: 1.67.1 + toolchain: 1.70.0 components: rustfmt, clippy override: true - name: rustfmt diff --git a/src/bitcoin/d/mod.rs b/src/bitcoin/d/mod.rs index e3ef8b3d..8ed12a0a 100644 --- a/src/bitcoin/d/mod.rs +++ b/src/bitcoin/d/mod.rs @@ -1,6 +1,7 @@ -///! Implementation of the Bitcoin interface using bitcoind. -///! -///! We use the RPC interface and a watchonly descriptor wallet. +//! Implementation of the Bitcoin interface using bitcoind. +//! +//! We use the RPC interface and a watchonly descriptor wallet. + mod utils; use crate::{ bitcoin::{Block, BlockChainTip}, diff --git a/src/bitcoin/mod.rs b/src/bitcoin/mod.rs index 9aa2732e..2c9e5e7b 100644 --- a/src/bitcoin/mod.rs +++ b/src/bitcoin/mod.rs @@ -1,6 +1,7 @@ -///! Interface to the Bitcoin network. -///! -///! Broadcast transactions, poll for new unspent coins, gather fee estimates. +//! Interface to the Bitcoin network. +//! +//! Broadcast transactions, poll for new unspent coins, gather fee estimates. + pub mod d; pub mod poller; diff --git a/src/database/mod.rs b/src/database/mod.rs index 699cd5d8..dd08ede0 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -1,6 +1,7 @@ -///! Database interface for Liana. -///! -///! Record wallet metadata, spent and unspent coins, ongoing transactions. +//! Database interface for Liana. +//! +//! Record wallet metadata, spent and unspent coins, ongoing transactions. + pub mod sqlite; use crate::{ diff --git a/src/database/sqlite/mod.rs b/src/database/sqlite/mod.rs index dd0ede38..523fc7a2 100644 --- a/src/database/sqlite/mod.rs +++ b/src/database/sqlite/mod.rs @@ -1,11 +1,12 @@ -///! Implementation of the database interface using SQLite. -///! -///! We use a bundled SQLite that is compiled with SQLITE_THREADSAFE. Sqlite.org states: -///! > Multi-thread. In this mode, SQLite can be safely used by multiple threads provided that -///! > no single database connection is used simultaneously in two or more threads. -///! -///! We leverage SQLite's `unlock_notify` feature to synchronize writes accross connection. More -///! about it at https://sqlite.org/unlock_notify.html. +//! Implementation of the database interface using SQLite. +//! +//! We use a bundled SQLite that is compiled with SQLITE_THREADSAFE. Sqlite.org states: +//! > Multi-thread. In this mode, SQLite can be safely used by multiple threads provided that +//! > no single database connection is used simultaneously in two or more threads. +//! +//! We leverage SQLite's `unlock_notify` feature to synchronize writes accross connection. More +//! about it at https://sqlite.org/unlock_notify.html. + pub mod schema; mod utils;