diff --git a/crates/red_knot_workspace/src/workspace/settings.rs b/crates/red_knot_workspace/src/workspace/settings.rs index 525357e184..c924e9ec9b 100644 --- a/crates/red_knot_workspace/src/workspace/settings.rs +++ b/crates/red_knot_workspace/src/workspace/settings.rs @@ -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), }, } diff --git a/crates/ruff_graph/src/db.rs b/crates/ruff_graph/src/db.rs index c21b27715e..9e3d1b6f3f 100644 --- a/crates/ruff_graph/src/db.rs +++ b/crates/ruff_graph/src/db.rs @@ -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, }, )?;