Skip to content

Commit

Permalink
feat: bump toad-array (#347)
Browse files Browse the repository at this point in the history
* fix: bump array

* wip

* wip

* feat: bump toad-array

* fix: this is ok
  • Loading branch information
cakekindel committed May 11, 2023
1 parent e84a385 commit f417dd4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
14 changes: 12 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion toad-msg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ toad-macros = "0.2.0"
blake2 = "0.10"
toad-map = {version = "0.2.3", default_features = false}
toad-len = {version = "0.1.3", default_features = false}
toad-array = {version = "0.2.3", default_features = false}
toad-array = {version = "0.8.0", default_features = false}
toad-cursor = {version = "0.2.0", default_features = false}
toad-hash = {version = "0.3.0", default_features = false}

Expand Down
4 changes: 2 additions & 2 deletions toad-msg/src/msg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use core::hash::Hash;
use core::iter::FromIterator;
use core::str::{from_utf8, Utf8Error};

use toad_array::{AppendCopy, Array};
use toad_array::{AppendCopy, Array, Indexed};
use toad_cursor::Cursor;
use toad_len::Len;
use toad_macros::rfc_7252_doc;
Expand Down Expand Up @@ -870,7 +870,7 @@ impl<PayloadBytes: Array<Item = u8> + AppendCopy<u8>, Options: OptionMap>
| (vals, _) if vals.is_full() => Err(SetOptionError::RepeatedTooManyTimes(v)),
| (vals, opts) if opts.is_full() => Err(SetOptionError::TooManyOptions(n, vals)),
| (mut vals, opts) => {
vals.push(v);
vals.append(v);
opts.insert(n, vals).ok();
Ok(())
},
Expand Down
2 changes: 1 addition & 1 deletion toad-msg/src/msg/opt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::ops::{Add, Sub};
#[cfg(feature = "alloc")]
use std_alloc::vec::Vec;
use tinyvec::ArrayVec;
use toad_array::{AppendCopy, Array};
use toad_array::{AppendCopy, Array, Indexed};
use toad_cursor::Cursor;
use toad_len::Len;
use toad_macros::rfc_7252_doc;
Expand Down

0 comments on commit f417dd4

Please sign in to comment.