1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::Result; pub mod apply; pub mod display; pub type Options<'a> = super::outdated::Options<'a>; pub async fn run(options: Options<'_>) -> Result<()> { let results = super::outdated::resolve_sources(&options).await?; let update_sources: Vec<_> = results.iter().filter_map(|res| res.as_ref().ok()).collect(); apply::apply(update_sources)?; display::display_results(results.into()); Ok(()) }