Bump heapless, and hence generic-array. Remove ufmt

This commit is contained in:
Nicolas Stalder
2021-02-26 23:50:26 +01:00
parent 384f415afd
commit d543ddb2ff
2 changed files with 2 additions and 15 deletions
+2 -3
View File
@@ -1,6 +1,6 @@
[package]
name = "heapless-bytes"
version = "0.1.1"
version = "0.2.0"
authors = ["Nicolas Stalder <n@stalder.io>"]
license = "Apache-2.0 OR MIT"
description = "Newtype around heapless byte Vec with efficient serde."
@@ -11,11 +11,10 @@ readme = "README.md"
edition = "2018"
[dependencies]
ufmt = "0.1.0"
typenum = "1.11.2"
[dependencies.heapless]
version = "0.5.1"
version = "0.6"
default-features = false
[dependencies.serde]
-12
View File
@@ -274,18 +274,6 @@ impl<N: ArrayLength<u8>> Debug for Bytes<N> {
}
}
impl<N> ufmt::uDebug for Bytes<N>
where
N: ArrayLength<u8>,
{
fn fmt<W>(&self, f: &mut ufmt::Formatter<'_, W>) -> Result<(), W::Error>
where
W: ufmt::uWrite + ?Sized,
{
<[u8] as ufmt::uDebug>::fmt(self, f)
}
}
impl<N: ArrayLength<u8>> AsRef<[u8]> for Bytes<N> {
fn as_ref(&self) -> &[u8] {
&self.bytes