Improve logging

This commit is contained in:
Aleksey Kladov
2018-10-25 16:03:49 +03:00
parent ee4d904cfb
commit 56df0fc83c
6 changed files with 41 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
pub(crate) mod input;
use std::{
fmt,
sync::Arc,
};
@@ -17,17 +16,11 @@ use crate::{
FileId,
};
#[derive(Default)]
#[derive(Default, Debug)]
pub(crate) struct RootDatabase {
runtime: salsa::Runtime<RootDatabase>,
}
impl fmt::Debug for RootDatabase {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str("RootDatabase { ... }")
}
}
impl salsa::Database for RootDatabase {
fn salsa_runtime(&self) -> &salsa::Runtime<RootDatabase> {
&self.runtime