Skip to content

Commit

Permalink
Fixed serde export private module issue (#603)
Browse files Browse the repository at this point in the history
* replace serde.export with std
  • Loading branch information
liangping authored Jul 20, 2021
1 parent 4eca03b commit e42bfd1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion storage/backup/backup-cli/src/metadata/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::metadata::{
use anyhow::{anyhow, ensure, Result};
use itertools::Itertools;
use libra_types::transaction::Version;
use serde::export::Formatter;
use std::{fmt::Display, str::FromStr};
use std::fmt::Formatter;

pub struct MetadataView {
epoch_ending_backups: Vec<EpochEndingBackupMeta>,
Expand Down
3 changes: 2 additions & 1 deletion storage/libradb/src/backup/backup_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ use libra_types::{
proof::{SparseMerkleRangeProof, TransactionAccumulatorRangeProof, TransactionInfoWithProof},
transaction::{Transaction, TransactionInfo, Version},
};
use serde::{export::Formatter, Deserialize, Serialize};
use serde::{Deserialize, Serialize};
use std::{fmt::Display, sync::Arc};
use std::fmt::Formatter;

/// `BackupHandler` provides functionalities for LibraDB data backup.
#[derive(Clone)]
Expand Down
3 changes: 2 additions & 1 deletion types/src/account_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ use crate::{
};
use anyhow::{bail, format_err, Error, Result};
use move_core_types::{identifier::Identifier, move_resource::MoveResource};
use serde::{de::DeserializeOwned, export::Formatter, Deserialize, Serialize};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use std::{collections::btree_map::BTreeMap, convert::TryFrom, fmt};
use std::fmt::Formatter;

#[derive(Default, Deserialize, PartialEq, Serialize)]
pub struct AccountState(BTreeMap<Vec<u8>, Vec<u8>>);
Expand Down
3 changes: 2 additions & 1 deletion types/src/chain_id.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Copyright (c) The Libra Core Contributors
// SPDX-License-Identifier: Apache-2.0
use anyhow::{ensure, format_err, Error, Result};
use serde::{de::Visitor, export::fmt::Debug, Deserialize, Deserializer, Serialize};
use serde::{de::Visitor, Deserialize, Deserializer, Serialize};
use std::{
convert::TryFrom,
fmt::{Display, Formatter},
str::FromStr,
};
use std::fmt::Debug;

/// A registry of named chain IDs
/// Its main purpose is to improve human readability of reserved chain IDs in config files and CLI
Expand Down

0 comments on commit e42bfd1

Please sign in to comment.