Implement ConfigProcessor on non-ref type (#6915)

This commit is contained in:
Micha Reiser 2023-08-27 15:03:11 +02:00 committed by GitHub
parent f33277a057
commit 3f3494ad44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 14 deletions

View file

@ -513,7 +513,7 @@ pub struct Overrides {
pub show_fixes: Option<bool>,
}
impl ConfigProcessor for &Overrides {
impl ConfigProcessor for Overrides {
fn process_config(&self, config: &mut ruff::settings::configuration::Configuration) {
if let Some(cache_dir) = &self.cache_dir {
config.cache_dir = Some(cache_dir.clone());