borrow_deref_ref

This commit is contained in:
Johann Hemmann 2024-01-22 01:54:55 +01:00
parent c4688343de
commit dd9f27b8d3
3 changed files with 3 additions and 4 deletions

View file

@ -41,13 +41,13 @@ impl Default for TestDB {
impl Upcast<dyn ExpandDatabase> for TestDB {
fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
&*self
self
}
}
impl Upcast<dyn DefDatabase> for TestDB {
fn upcast(&self) -> &(dyn DefDatabase + 'static) {
&*self
self
}
}