From 657b9165fb74b1ff7cc2d278eb8e4863ae76e032 Mon Sep 17 00:00:00 2001 From: brentstone Date: Tue, 28 May 2024 13:25:11 -0700 Subject: [PATCH] fix clippy + fmt --- crates/sdk/src/migrations.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/sdk/src/migrations.rs b/crates/sdk/src/migrations.rs index 07c915129a..d5538214dd 100644 --- a/crates/sdk/src/migrations.rs +++ b/crates/sdk/src/migrations.rs @@ -6,7 +6,6 @@ use core::fmt::Formatter; use core::fmt::{Display, Formatter}; #[cfg(feature = "migrations")] use core::str::FromStr; -use std::io::Read; use std::marker::PhantomData; use std::path::{Path, PathBuf}; @@ -401,9 +400,13 @@ where } fn validate(&self) -> eyre::Result { - let update_json = std::fs::read_to_string(&self.path).map_err(|_| { - eyre!("Could not find or read updates file at the specified path.") - })?; + let update_json = + std::fs::read_to_string(&self.path).map_err(|_| { + eyre!( + "Could not find or read updates file at the specified \ + path." + ) + })?; // validate contents against provided hash if Hash::sha256(update_json.as_bytes()) != self.hash { Err(eyre!(