Skip to content

Commit

Permalink
chore(proto): fix feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Feb 23, 2024
1 parent 191d072 commit c57971b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ use core::{
fmt::Display,
};
#[cfg(feature = "std")]
use std::{
convert::{TryFrom, TryInto},
fmt::Display,
};
use std::fmt::Display;

use bytes::{Buf, BufMut};
pub use error::Error;
Expand All @@ -43,7 +40,6 @@ pub mod serializers;

use prelude::*;
pub use tenderdash::meta::ABCI_VERSION;

#[cfg(any(feature = "grpc-server", feature = "grpc-client"))]
pub use tonic;

Expand Down
4 changes: 4 additions & 0 deletions proto/src/serializers/part_set_header_total.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
//! from a string-quoted integer value into an integer value without quotes in
//! Tendermint Core v0.34.0. This deserializer allows backwards-compatibility by
//! deserializing both ways. See also: <https://github.com/informalsystems/tendermint-rs/issues/679>
#[cfg(not(feature = "std"))]
use core::{convert::TryFrom, fmt::Formatter};
#[cfg(feature = "std")]
use std::fmt::Formatter;

use serde::{
de::{Error, Visitor},
Expand Down

0 comments on commit c57971b

Please sign in to comment.