fn should_update_cache(args: &Args, config: &Config) -> bool {
    args.update
        || (config.updates.auto_update
            && Cache::last_update().map_or(true, |ago| ago >= config.updates.auto_update_interval))
}
/// The cache should get updated if this was requested by the user, or if auto
/// updates are enabled and the cache age is longer than the auto update interval.
The cache should get updated if this was requested by the user, or if auto
updates are enabled and the cache age is longer than the auto update interval.
The cache should get updated if this was requested by the user or if auto updates are enabled and the cache age is longer than the auto update interval .
fn should_update_cache(args: &Args, config: &Config) -> bool {
    args.update
        || (config.updates.auto_update
            && Cache::last_update().map_or(true, |ago| ago >= config.updates.auto_update_interval))
}
fn should_update_cache ( args : & Args , config : & Config ) -> bool { args . update || ( config . updates . auto_update && Cache :: last_update ( ) . map_or ( true , | ago | ago >= config . updates . auto_update_interval ) ) }
The cache should get updated if this was requested by the user, or if auto
updates are enabled and the cache age is longer than the auto update interval.
The cache should get updated if this was requested by the user or if auto updates are enabled and the cache age is longer than the auto update interval .
args
&Args
config
&Config
args
&Args
config
&Config