Clippy suggestions

This commit is contained in:
David Peter
2024-12-17 17:21:24 +01:00
parent e871ea19e7
commit 00e698b346
2 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
use crate::workspace::PackageMetadata;
use red_knot_python_semantic::{ProgramSettings, PythonVersion, SearchPathSettings, SitePackages};
use red_knot_python_semantic::{
ProgramSettings, PythonPlatform, PythonVersion, SearchPathSettings, SitePackages,
};
use ruff_db::system::{SystemPath, SystemPathBuf};
/// The resolved configurations.
@@ -40,7 +42,7 @@ impl Configuration {
WorkspaceSettings {
program: ProgramSettings {
python_version: self.python_version.unwrap_or_default(),
python_platform: Default::default(),
python_platform: PythonPlatform::default(),
search_paths: self.search_paths.to_settings(workspace_root),
},
}

View File

@@ -3,7 +3,9 @@ use std::sync::Arc;
use zip::CompressionMethod;
use red_knot_python_semantic::lint::RuleSelection;
use red_knot_python_semantic::{Db, Program, ProgramSettings, PythonVersion, SearchPathSettings};
use red_knot_python_semantic::{
Db, Program, ProgramSettings, PythonPlatform, PythonVersion, SearchPathSettings,
};
use ruff_db::files::{File, Files};
use ruff_db::system::{OsSystem, System, SystemPathBuf};
use ruff_db::vendored::{VendoredFileSystem, VendoredFileSystemBuilder};
@@ -49,7 +51,7 @@ impl ModuleDb {
&db,
&ProgramSettings {
python_version,
python_platform: Default::default(),
python_platform: PythonPlatform::default(),
search_paths,
},
)?;