Adapt BoolLike to flags (#3175)

This commit is contained in:
Jeong YunWon 2023-02-24 06:31:46 +09:00 committed by GitHub
parent 6e54cd8233
commit c8c575dd43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 27 deletions

View file

@ -40,7 +40,7 @@ pub fn run(
}
// Initialize the cache.
if matches!(cache, flags::Cache::Enabled) {
if cache.into() {
match &pyproject_strategy {
PyprojectDiscovery::Fixed(settings) => {
if let Err(e) = cache::init(&settings.cli.cache_dir) {