(error: impl std::fmt::Display)
| 111 | } |
| 112 | |
| 113 | fn legacy_upgrade_error(error: impl std::fmt::Display) -> PristineError { |
| 114 | PristineError::Io(std::io::Error::other(format!( |
| 115 | "failed to upgrade legacy redb database: {error}" |
| 116 | ))) |
| 117 | } |
| 118 | |
| 119 | fn upgrade_legacy_database(path: &Path) -> PristineResult<()> { |
| 120 | let mut legacy = redb_2_6::Database::open(path).map_err(legacy_upgrade_error)?; |
nothing calls this directly
no outgoing calls
no test coverage detected