Skip to content

Commit f94ab56

Browse files
committed
Add diagnostics_config to test databases in djls-semantic
Two test databases in djls-semantic also implement the Db trait and need the diagnostics_config method: - TestDatabase in blocks/tree.rs - TestDatabase in semantic/forest.rs Both return default config since tests don't need custom settings.
1 parent 663f60a commit f94ab56

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crates/djls-semantic/src/blocks/tree.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ mod tests {
247247
fn template_dirs(&self) -> Option<Vec<Utf8PathBuf>> {
248248
None
249249
}
250+
251+
fn diagnostics_config(&self) -> djls_conf::DiagnosticsConfig {
252+
djls_conf::DiagnosticsConfig::default()
253+
}
250254
}
251255

252256
#[test]

crates/djls-semantic/src/semantic/forest.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ mod tests {
287287
fn template_dirs(&self) -> Option<Vec<Utf8PathBuf>> {
288288
None
289289
}
290+
291+
fn diagnostics_config(&self) -> djls_conf::DiagnosticsConfig {
292+
djls_conf::DiagnosticsConfig::default()
293+
}
290294
}
291295

292296
#[test]

0 commit comments

Comments
 (0)