From 40168de8f7630f36435ca00d2493469b77a5bcdd Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 17 Oct 2022 12:47:35 +0200 Subject: [PATCH] Use Self instead of _Struct. --- source/from_str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/from_str.rs b/source/from_str.rs index ef2b674..c17fcf8 100644 --- a/source/from_str.rs +++ b/source/from_str.rs @@ -16,6 +16,6 @@ impl FromStr for _Struct { fn from_str(s: &str) -> Result { let html = Html::parse_document(s); - _Struct::from_html(&html) + Self::from_html(&html) } }