From a128ca761f00ef60cfab3006bb348f98147e20c0 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Fri, 14 Mar 2025 20:13:07 +0100 Subject: [PATCH] [red-knot] Very minor simplification of the render tests (#16759) --- crates/ruff_db/src/diagnostic/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff_db/src/diagnostic/render.rs b/crates/ruff_db/src/diagnostic/render.rs index 592e1c1265..8edbf5b68b 100644 --- a/crates/ruff_db/src/diagnostic/render.rs +++ b/crates/ruff_db/src/diagnostic/render.rs @@ -643,7 +643,7 @@ mod tests { use crate::diagnostic::{Annotation, DiagnosticId, Severity, Span}; use crate::files::system_path_to_file; - use crate::system::{DbWithTestSystem, SystemPath, WritableSystem}; + use crate::system::{DbWithWritableSystem, SystemPath}; use crate::tests::TestDb; use super::*; @@ -2025,7 +2025,7 @@ watermelon /// Add a file with the given path and contents to this environment. fn add(&mut self, path: &str, contents: &str) { let path = SystemPath::new(path); - self.db.test_system().write_file(path, contents).unwrap(); + self.db.write_file(path, contents).unwrap(); } /// Conveniently create a `Span` that points into a file in this