]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/newtypes.rs
Implement instance actor (#1798)
[lemmy.git] / crates / db_schema / src / newtypes.rs
index b863a250014df2d39acfc663612a16b40cbf6cc7..3e68768bcb9b02a0628c1b88007ebc48d280b7f3 100644 (file)
@@ -10,6 +10,7 @@ use std::{
   fmt,
   fmt::{Display, Formatter},
   io::Write,
+  ops::Deref,
 };
 use url::Url;
 
@@ -125,3 +126,11 @@ where
     DbUrl(id.into())
   }
 }
+
+impl Deref for DbUrl {
+  type Target = Url;
+
+  fn deref(&self) -> &Self::Target {
+    &self.0
+  }
+}