[red-knot] Very minor simplification of the render tests (#16759)

This commit is contained in:
Micha Reiser 2025-03-14 20:13:07 +01:00 committed by GitHub
parent 3a32e56445
commit a128ca761f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -643,7 +643,7 @@ mod tests {
use crate::diagnostic::{Annotation, DiagnosticId, Severity, Span}; use crate::diagnostic::{Annotation, DiagnosticId, Severity, Span};
use crate::files::system_path_to_file; use crate::files::system_path_to_file;
use crate::system::{DbWithTestSystem, SystemPath, WritableSystem}; use crate::system::{DbWithWritableSystem, SystemPath};
use crate::tests::TestDb; use crate::tests::TestDb;
use super::*; use super::*;
@ -2025,7 +2025,7 @@ watermelon
/// Add a file with the given path and contents to this environment. /// Add a file with the given path and contents to this environment.
fn add(&mut self, path: &str, contents: &str) { fn add(&mut self, path: &str, contents: &str) {
let path = SystemPath::new(path); 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 /// Conveniently create a `Span` that points into a file in this