Skip to content

Commit dd32643

Browse files
committed
wip
1 parent 2a89a72 commit dd32643

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/storage/db/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ impl Db {
101101
let path = dir.path();
102102

103103
let version = if is_database_empty(path) {
104-
fs::create_dir_all(&path).with_context(|| {
104+
fs::create_dir_all(path).with_context(|| {
105105
format!("Creating database directory at path {}", path.display())
106106
})?;
107107

108-
create_db_version_file(&path, CURRENT_DB_VERSION).with_context(|| {
108+
create_db_version_file(path, CURRENT_DB_VERSION).with_context(|| {
109109
format!("Inserting database version file at path {}", path.display())
110110
})?
111111
} else {
112-
match get_db_version(&path) {
112+
match get_db_version(path) {
113113
Ok(version) if version != CURRENT_DB_VERSION => {
114114
if !is_block_compatible_version(&version) {
115115
return Err(anyhow!(DatabaseVersionError::MismatchVersion {
@@ -124,7 +124,7 @@ impl Db {
124124
Ok(version) => version,
125125

126126
Err(DatabaseVersionError::FileNotFound) => {
127-
create_db_version_file(&path, CURRENT_DB_VERSION).with_context(|| {
127+
create_db_version_file(path, CURRENT_DB_VERSION).with_context(|| {
128128
format!(
129129
"No database version file found. Inserting version file at path {}",
130130
path.display()

0 commit comments

Comments
 (0)