Fix outdated doctest

This commit is contained in:
CenTdemeern1 2025-02-01 00:21:58 +01:00
parent c15ebdfe42
commit 67cb46c19b

View file

@ -29,11 +29,11 @@ use url::Url;
/// # tokio_test::block_on(async { /// # tokio_test::block_on(async {
/// use favicon_scraper::{scrape, Error}; /// use favicon_scraper::{scrape, Error};
/// ///
/// let icons = scrape("https://kitsunes.dev", true).await.unwrap(); /// let icons = scrape("https://kitsunes.dev").await.unwrap();
/// ///
/// // Only HTTP(S) is supported /// // Only HTTP(S) is supported
/// assert!(matches!( /// assert!(matches!(
/// scrape("ftp://example.com", true).await, /// scrape("ftp://example.com").await,
/// Err(Error::UnsupportedURLScheme) /// Err(Error::UnsupportedURLScheme)
/// )); /// ));
/// # }) /// # })