File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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( )
You can’t perform that action at this time.
0 commit comments