Refactor symbol request tests

This commit is contained in:
Patrick Förster 2023-04-23 11:01:23 +02:00
parent 4cc0b20a56
commit 7fb38fa877
44 changed files with 1290 additions and 1678 deletions

View file

@ -18,7 +18,7 @@ pub enum Owner {
Server,
}
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct Document {
pub uri: Url,
pub dir: Url,
@ -100,6 +100,12 @@ impl Document {
}
}
impl std::fmt::Debug for Document {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_tuple("Document").field(&self.uri.as_str()).finish()
}
}
impl std::borrow::Borrow<Url> for Document {
fn borrow(&self) -> &Url {
&self.uri