Skip to content

Commit

Permalink
chore: imports and features
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Feb 21, 2024
1 parent eb5d1af commit 01481bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ mod error;
#[allow(warnings)]
mod tenderdash;

#[cfg(not(feature = "std"))]
use core::{
convert::{TryFrom, TryInto},
fmt::Display,
};
#[cfg(feature = "std")]
use std::{
convert::{TryFrom, TryInto},
fmt::Display,
};

use bytes::{Buf, BufMut};
pub use error::Error;
Expand Down

0 comments on commit 01481bf

Please sign in to comment.