use Self as type

This commit is contained in:
yggverse 2024-10-12 11:16:12 +03:00
parent 66e0a747f1
commit 308ada8111

View File

@ -8,7 +8,7 @@ pub struct Link {
}
impl Link {
pub fn from(line: &str, to_base: Option<&Uri>) -> Option<Link> {
pub fn from(line: &str, to_base: Option<&Uri>) -> Option<Self> {
// Define initial values
let mut alt = None;
let mut date = None;