[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

View file

@ -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