mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
use Self as type
This commit is contained in:
parent
66e0a747f1
commit
308ada8111
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user