Skip to content

Commit

Permalink
style(src): apply rustfmt
Browse files Browse the repository at this point in the history
Signed-off-by: Sandro-Alessio Gierens <[email protected]>
  • Loading branch information
gierens committed Mar 16, 2024
1 parent c90ac13 commit a83cec0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/block_storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ mod protocol;
mod volumes;

pub use self::protocol::{VolumeSortKey, VolumeStatus};
pub use self::volumes::{Volume, VolumeQuery, NewVolume};
pub use self::volumes::{NewVolume, Volume, VolumeQuery};
5 changes: 4 additions & 1 deletion src/block_storage/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ pub struct VolumeCreate {
pub volume_type: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub metadata: Option<HashMap<String, String>>,
#[serde(skip_serializing_if = "Option::is_none", rename = "consistency_group_id")]
#[serde(
skip_serializing_if = "Option::is_none",
rename = "consistency_group_id"
)]
pub consistency_group_id: Option<String>,
}

Expand Down
2 changes: 1 addition & 1 deletion src/block_storage/volumes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
use async_trait::async_trait;
use futures::stream::{Stream, TryStreamExt};
use std::collections::HashMap;
use std::fmt::{self, Display, Formatter};
use std::time::Duration;
use std::collections::HashMap;

use super::super::common::{Refresh, ResourceIterator, ResourceQuery};
use super::super::session::Session;
Expand Down
2 changes: 1 addition & 1 deletion src/cloud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use std::io;

use super::auth::AuthType;
#[cfg(feature = "block-storage")]
use super::block_storage::{Volume, VolumeQuery, NewVolume};
use super::block_storage::{NewVolume, Volume, VolumeQuery};
#[allow(unused_imports)]
use super::common::{ContainerRef, FlavorRef, NetworkRef};
#[cfg(feature = "compute")]
Expand Down

0 comments on commit a83cec0

Please sign in to comment.