mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use Self as type
This commit is contained in:
parent
66e0a747f1
commit
308ada8111
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue