mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
Adapt BoolLike to flags (#3175)
This commit is contained in:
parent
6e54cd8233
commit
c8c575dd43
5 changed files with 6 additions and 27 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue