|
|
|
@ -44,7 +44,6 @@ impl<'v> FromFormValue<'v> for Link { |
|
|
|
|
Ok(string) => string, |
|
|
|
|
Err(_) => return Err(form_value) |
|
|
|
|
}; |
|
|
|
|
dbg!(&string); |
|
|
|
|
|
|
|
|
|
// Try to parse a hyperlink from the string
|
|
|
|
|
let mut abs_uri: Option<Absolute> = None; |
|
|
|
@ -62,7 +61,6 @@ impl<'v> FromFormValue<'v> for Link { |
|
|
|
|
Some(abs_uri) => Link{uri: abs_uri.to_string()}, |
|
|
|
|
_ => return Err(form_value) |
|
|
|
|
}; |
|
|
|
|
dbg!(&result); |
|
|
|
|
|
|
|
|
|
// Return successfully.
|
|
|
|
|
Ok(result) |
|
|
|
|