Skip to content

Commit

Permalink
fix: fix warnings and update deps and toolchain (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf authored Dec 3, 2023
1 parent 16b1a71 commit 6dd6f29
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-mqtt"
version = "0.1.5"
version = "0.2.0"
authors = ["Ondrej Babec <[email protected]>"]
edition = "2021"
resolver = "2"
Expand All @@ -11,18 +11,18 @@ repository = "https://github.com/obabec/rust-mqtt"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
heapless = "0.7.10"
rand_core = "0.6.0"
heapless = "0.8"
rand_core = "0.6"
defmt = { version = "0.3", optional = true }
log = { version = "0.4.14", optional = true }
embedded-io = "0.6.1"
embedded-io-async = { version = "0.6.0" }
log = { version = "0.4", optional = true }
embedded-io = "0.6"
embedded-io-async = "0.6"

[dev-dependencies]
tokio = { version = "1", features = ["full"] }
embedded-io = "0.6.1"
embedded-io-adapters ={ version = "0.6.0", features = ["tokio-1"]}
embedded-io-async = { version = "0.6.0" }
embedded-io = "0.6"
embedded-io-adapters ={ version = "0.6", features = ["tokio-1"]}
embedded-io-async = { version = "0.6" }
tokio-test = { version = "0.4.2"}
env_logger = "0.9.0"
futures = { version = "0.3.21" }
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2022-11-22"
channel = "nightly-2023-11-01"
components = [ "rust-src", "rustfmt" ]
targets = [ "thumbv7em-none-eabi", "thumbv7m-none-eabi", "thumbv6m-none-eabi", "thumbv7em-none-eabihf", "thumbv8m.main-none-eabihf", "wasm32-unknown-unknown" ]
2 changes: 1 addition & 1 deletion src/packet/v5/connect_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<'a, const MAX_PROPERTIES: usize, const MAX_WILL_PROPERTIES: usize>
property_len: 3,
properties: Vec::<Property<'a>, MAX_PROPERTIES>::new(),
client_id: EncodedString::new(),
/// Will is not supported as it is un-necessary load for embedded
// Will is not supported as it is un-necessary load for embedded
will_property_len: 0,
will_properties: Vec::<Property<'a>, MAX_WILL_PROPERTIES>::new(),
will_topic: EncodedString::new(),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/buffer_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl<'a> BuffWriter<'a> {
pub fn write_topic_filters_ref<const MAX: usize>(
&mut self,
sub: bool,
len: usize,
_len: usize,
filters: &Vec<TopicFilter<'a>, MAX>,
) -> Result<(), BufferError> {
for filter in filters {
Expand Down

0 comments on commit 6dd6f29

Please sign in to comment.