File: 020250407.2~5a5c54d.patch

package info (click to toggle)
rust-microformats 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,068 kB
  • sloc: javascript: 71; makefile: 26; sh: 1
file content (26 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: fix doctest
Author: Jacky Alciné <ayo@jacky.wtf>
Origin: upstream, https://gitlab.com/maxburon/microformats-parser/-/merge_requests/11/diffs?commit_id=5a5c54d
Bug: https://gitlab.com/maxburon/microformats-parser/-/issues/25
Last-Update: 2025-04-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/library/src/lib.rs
+++ b/library/src/lib.rs
@@ -49,6 +49,7 @@
 /// ```
 /// use microformats::from_html;
 ///
+/// let base_url: url::Url = "https://example.com".parse().unwrap();
 /// let document = from_html(r#"
 /// <html>
 ///     <head>
@@ -57,7 +58,7 @@
 ///     <body>
 ///     </body>
 /// </html>
-/// "#, "https://example.com".parse().unwrap());
+/// "#, &base_url);
 ///
 /// assert!(document.is_ok());
 /// ```