Skip to content

Commit

Permalink
changed the order of derive/serde to fix Rust issue 79202
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhong1 committed Apr 5, 2021
1 parent ee6ec28 commit f7847a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ pub struct CrushTree {
pub stray: Vec<String>,
}

#[serde(untagged)]
#[derive(Deserialize, Debug, Clone)]
#[serde(untagged)]
pub enum Mem {
MemNum {
mem_swap_kb: u64,
Expand Down Expand Up @@ -83,15 +83,15 @@ pub struct MgrMetadata {
other_meta: Option<HashMap<String, String>>,
}

#[serde(rename_all = "lowercase")]
#[derive(Deserialize, Debug, Clone)]
#[serde(rename_all = "lowercase")]
pub enum ObjectStoreType {
Bluestore,
Filestore,
}

#[serde(untagged, rename_all = "lowercase")]
#[derive(Deserialize, Debug, Clone)]
#[serde(untagged, rename_all = "lowercase")]
pub enum ObjectStoreMeta {
Bluestore {
bluefs: String,
Expand Down

0 comments on commit f7847a7

Please sign in to comment.