Skip to content

Commit 83fce1e

Browse files
authored
Merge pull request #126 from buffrr/fix-lint
Fix lint errors
2 parents 47d610c + c852e3d commit 83fce1e

File tree

11 files changed

+25
-46
lines changed

11 files changed

+25
-46
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22

33
resolver = "2"
44
members = [ "client", "protocol", "veritas", "testutil", "wallet"]
5+
6+
7+
[workspace.package]
8+
version = "0.0.9"
9+
edition = "2021"

client/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "spaces_client"
3-
version = "0.0.8"
4-
edition = "2021"
3+
version.workspace = true
4+
edition.workspace = true
55

66

77
[[bin]]

client/src/bin/space-cli.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ use jsonrpsee::{
1818
core::{client::Error, ClientError},
1919
http_client::HttpClient,
2020
};
21-
use serde::{Deserialize, Serialize};
2221
use spaces_client::{
2322
auth::{auth_token_from_cookie, auth_token_from_creds, http_client_with_auth},
2423
config::{default_cookie_path, default_spaces_rpc_port, ExtendedNetwork},
25-
deserialize_base64,
2624
format::{
2725
print_error_rpc_response, print_list_bidouts, print_list_spaces_response,
2826
print_list_transactions, print_list_unspent, print_list_wallets, print_server_info,
@@ -32,7 +30,6 @@ use spaces_client::{
3230
BidParams, ExecuteParams, OpenParams, RegisterParams, RpcClient, RpcWalletRequest,
3331
RpcWalletTxBuilder, SendCoinsParams, TransferSpacesParams,
3432
},
35-
serialize_base64,
3633
wallets::{AddressKind, WalletResponse},
3734
};
3835
use spaces_protocol::bitcoin::{Amount, FeeRate, OutPoint, Txid};
@@ -369,28 +366,6 @@ struct SpaceCli {
369366
client: HttpClient,
370367
}
371368

372-
#[derive(Serialize, Deserialize)]
373-
struct SignedDnsUpdate {
374-
serial: u32,
375-
space: String,
376-
#[serde(
377-
serialize_with = "serialize_base64",
378-
deserialize_with = "deserialize_base64"
379-
)]
380-
packet: Vec<u8>,
381-
signature: Signature,
382-
#[serde(skip_serializing_if = "Option::is_none")]
383-
proof: Option<Base64Bytes>,
384-
}
385-
386-
#[derive(Serialize, Deserialize)]
387-
struct Base64Bytes(
388-
#[serde(
389-
serialize_with = "serialize_base64",
390-
deserialize_with = "deserialize_base64"
391-
)]
392-
Vec<u8>,
393-
);
394369

395370
impl SpaceCli {
396371
async fn configure() -> anyhow::Result<(Self, Args)> {

client/src/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ impl Store {
8989
Ok(Database::new(Box::new(FileBackend::new(file)?), config)?)
9090
}
9191

92-
pub fn iter(&self) -> SnapshotIterator<Sha256Hasher> {
92+
pub fn iter(&self) -> SnapshotIterator<'_, Sha256Hasher> {
9393
return self.0.iter();
9494
}
9595

96-
pub fn write(&self) -> Result<WriteTx> {
96+
pub fn write(&self) -> Result<WriteTx<'_>> {
9797
Ok(self.0.begin_write()?)
9898
}
9999

protocol/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "spaces_protocol"
3-
version = "0.0.8"
4-
edition = "2021"
3+
version.workspace = true
4+
edition.workspace = true
55

66
[dependencies]
77
bitcoin = { version = "0.32.2", features = ["base64", "serde"], default-features = false }

veritas/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "spaces_veritas"
3-
version = "0.0.7"
4-
edition = "2021"
3+
version.workspace = true
4+
edition.workspace = true
55

66
[lib]
77
crate-type = ["cdylib", "rlib"]

veritas/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl Veritas {
103103
}
104104

105105
impl Proof {
106-
pub fn iter(&self) -> ProofIter {
106+
pub fn iter(&self) -> ProofIter<'_> {
107107
ProofIter {
108108
inner: self.inner.iter(),
109109
}

wallet/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "spaces_wallet"
3-
version = "0.0.8"
4-
edition = "2021"
3+
version.workspace = true
4+
edition.workspace = true
55

66
[dependencies]
77
spaces_protocol = { path = "../protocol", features = ["std"], version = "*" }

wallet/src/builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ impl Builder {
405405
if !coin_transfers.is_empty() {
406406
for coin in coin_transfers {
407407
builder.add_send(coin)?;
408-
vout += 1;
409408
}
410409
}
411410

@@ -720,7 +719,7 @@ impl Builder {
720719
wallet: &mut SpacesWallet,
721720
unspendables: Vec<OutPoint>,
722721
confirmed_only: bool,
723-
) -> anyhow::Result<BuilderIterator> {
722+
) -> anyhow::Result<BuilderIterator<'_>> {
724723
let fee_rate = self
725724
.fee_rate
726725
.as_ref()

0 commit comments

Comments
 (0)