#![allow(
deprecated,
reason = "the retained CLI roster helper still forwards the legacy atm-core roster boundary during the Phase AC transition"
)]
use anyhow::Result;
use atm_core::boundary::RosterStore;
use atm_core::error::AtmError;
use atm_daemon_bootstrap::with_default_roster_store;
pub(crate) fn with_retained_roster_store<T>(
f: impl FnOnce(&(dyn RosterStore + Send + Sync)) -> Result<T, AtmError>,
) -> Result<T> {
with_default_roster_store(f).map_err(Into::into)
}