Skip to content

Commit

Permalink
xxx fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Twey committed Feb 21, 2025
1 parent 515a02a commit 9a07a65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions linera-faucet/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ impl Faucet {
version: VersionInfo,
}

Ok(self
.query::<Response>("query { version }")
.await?
.version)
Ok(self.query::<Response>("query { version }").await?.version)
}

pub async fn claim(
Expand Down
5 changes: 1 addition & 4 deletions linera-version/src/version_info/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ impl From<CrateVersion> for semver::Version {

pub type Hash = std::borrow::Cow<'static, str>;

#[cfg_attr(
linera_version_building,
derive(serde::Deserialize, serde::Serialize),
)]
#[cfg_attr(linera_version_building, derive(serde::Deserialize, serde::Serialize))]
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
/// The version info of a build of Linera.
pub struct VersionInfo {
Expand Down

0 comments on commit 9a07a65

Please sign in to comment.