File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ version = "0.6.0"
2020ryu = " 1.0.5"
2121
2222[dependencies .heapless ]
23- version = " 0.8 "
23+ version = " 0.9.1 "
2424features = [" serde" ]
2525optional = true
2626
@@ -30,7 +30,7 @@ features = ["derive"]
3030version = " 1.0.100"
3131
3232[dependencies .defmt ]
33- version = " 0.3 "
33+ version = " 1.0.1 "
3434optional = true
3535
3636[dev-dependencies ]
@@ -40,4 +40,4 @@ serde_derive = "1.0.100"
4040default = [" heapless" ]
4141custom-error-messages = [" heapless" ]
4242std = [" serde/std" ]
43- defmt = [" dep:defmt" , " heapless?/defmt-03 " ]
43+ defmt = [" dep:defmt" , " heapless?/defmt" ]
Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ impl From<u8> for Error {
4242 }
4343}
4444
45+ #[ cfg( feature = "heapless" ) ]
46+ impl From < heapless:: CapacityError > for Error {
47+ fn from ( _: heapless:: CapacityError ) -> Self {
48+ Error :: BufferFull
49+ }
50+ }
51+
4552impl serde:: ser:: StdError for Error { }
4653
4754impl fmt:: Display for Error {
You can’t perform that action at this time.
0 commit comments