MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / legacy_upgrade_error

Function legacy_upgrade_error

atomic-core/src/pristine/txn/pristine.rs:113–117  ·  view source on GitHub ↗
(error: impl std::fmt::Display)

Source from the content-addressed store, hash-verified

111}
112
113fn 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
119fn upgrade_legacy_database(path: &Path) -> PristineResult<()> {
120 let mut legacy = redb_2_6::Database::open(path).map_err(legacy_upgrade_error)?;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected