Skip to content

Commit

Permalink
Fix no_std check
Browse files Browse the repository at this point in the history
  • Loading branch information
hu55a1n1 committed Jul 28, 2022
1 parent 3aee49b commit 5d6f9b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions proto/src/protobuf/erased.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use alloc::boxed::Box;
use core::convert::{Into as CoreInto, TryFrom as CoreTryFrom};

mod sealed {
Expand Down
5 changes: 4 additions & 1 deletion proto/src/protobuf/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use alloc::format;
use alloc::string::String;
use core::fmt::Display;
use core::format_args;
use core::num::TryFromIntError;

use flex_error::{define_error, DisplayOnly};
Expand All @@ -11,7 +14,7 @@ define_error! {
TryFromProtobuf
{ reason: String }
| e | {
format!("error converting message type into domain type: {}",
format_args!("error converting message type into domain type: {}",
e.reason)
},

Expand Down
1 change: 1 addition & 0 deletions proto/src/protobuf/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod erased;
mod error;

use alloc::vec::Vec;
use core::fmt::Display;

use bytes::Buf;
Expand Down

0 comments on commit 5d6f9b0

Please sign in to comment.