Skip to content

Commit 758d15a

Browse files
committed
Lints
1 parent aaad725 commit 758d15a

File tree

7 files changed

+19
-20
lines changed

7 files changed

+19
-20
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "internet2"
3-
version = "0.5.0-alpha.1"
3+
version = "0.5.0-alpha.2"
44
license = "Apache-2.0"
55
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
66
description = "Rust implementation for the stack of Internet2 protocols"
@@ -24,7 +24,7 @@ crate-type = ["rlib", "staticlib"]
2424
# -----------------------------------------
2525
amplify = "3.9.1"
2626
strict_encoding = { version = "1.7", default-features = false, features = ["derive"] }
27-
lightning_encoding = "0.5.0-beta.1"
27+
lightning_encoding = "0.5.0-beta.2"
2828
inet2_addr = { version = "0.5", features = ["strict_encoding", "stringly_conversions"], path = "./addr" }
2929
inet2_derive = { version = "0.5.0-alpha.1", default-features = false, optional = true, path = "./derive" }
3030
# Dependencies on core rust-bitcoin & cryptography

derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ amplify = "3.9.1"
2424
internet2 = { path = ".." }
2525
lnpbp = "0.5.0-beta.3"
2626
strict_encoding = "1.7.1"
27-
lightning_encoding = "0.5.0-beta.1"
27+
lightning_encoding = "0.5.0-beta.2"
2828
bitcoin = "0.27"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
//dead_code,
2323
//missing_docs
2424
)]
25+
#![allow(unused_variables, dead_code)]
2526
// TODO: when we will be ready for the release #![deny(missing_docs, dead_code)]
2627
// This is required because of incomplete rust async implementation and can be
2728
// removed after async trait feature completion in rust compiler

src/presentation/tlv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use lightning_encoding::{self, BigSize, LightningDecode};
2222

2323
use super::{Error, EvenOdd, Unmarshall, UnmarshallFn};
2424

25-
pub type Map = BTreeMap<Type, RawRecord>;
25+
pub type UnknownMap = BTreeMap<usize, Box<[u8]>>;
2626

2727
/// TLV type field value
2828
#[derive(

src/session/noise/conduit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl NoiseEncryptor {
5454
)?;
5555
self.increment_nonce();
5656

57-
&chacha::encrypt(
57+
let _ = &chacha::encrypt(
5858
&self.sending_key,
5959
self.sending_nonce as u64,
6060
&[0; 0],

src/transport/zmqsocket.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,10 @@ impl Duplex for Connection {
435435
// We panic here because this is a program architecture design
436436
// error and developer must be notified about it; the program using
437437
// this pattern can't work
438-
panic!(format!(
438+
panic!(
439439
"Split operation is impossible for ZMQ stream type {}",
440440
self.api_type
441-
));
441+
);
442442
}
443443
}
444444
}
@@ -455,10 +455,7 @@ impl Bipolar for Connection {
455455
panic!("ZMQ streams of different type can't be joined");
456456
}
457457
if input.api_type != ZmqType::Push || input.api_type == ZmqType::Pull {
458-
panic!(format!(
459-
"ZMQ streams of {} type can't be joined",
460-
input.api_type
461-
));
458+
panic!("ZMQ streams of {} type can't be joined", input.api_type);
462459
}
463460
Self {
464461
api_type: input.api_type.clone(),
@@ -474,10 +471,10 @@ impl Bipolar for Connection {
474471
// We panic here because this is a program architecture design
475472
// error and developer must be notified about it; the program using
476473
// this pattern can't work
477-
panic!(format!(
474+
panic!(
478475
"Split operation is impossible for ZMQ stream type {}",
479476
self.api_type
480-
));
477+
);
481478
}
482479
}
483480
}

0 commit comments

Comments
 (0)