diff --git a/Cargo.toml b/Cargo.toml index e44bb03..4ba171a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" documentation = "https://docs.rs/ammonia/" repository = "https://github.com/rust-ammonia/ammonia" categories = [ "web-programming", "text-processing" ] -edition = "2018" +edition = "2021" rust-version = "1.60" [dependencies] diff --git a/src/lib.rs b/src/lib.rs index ab277f7..2de5838 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1658,7 +1658,7 @@ impl<'a> Builder<'a> { /// use ammonia::{Builder, Url, UrlRelative}; /// # use std::error::Error; /// - /// # fn do_main() -> Result<(), Box> { + /// # fn do_main() -> Result<(), Box> { /// let input = "This is an Ammonia example using the new() function."; /// let output = "This is an Ammonia example using the new() function."; /// @@ -1684,7 +1684,7 @@ impl<'a> Builder<'a> { /// use ammonia::{Builder, Url, UrlRelative}; /// # use std::error::Error; /// - /// # fn do_main() -> Result<(), Box> { + /// # fn do_main() -> Result<(), Box> { /// let input = "This is an Ammonia example using the empty() function."; /// let output = "This is an Ammonia example using the empty() function."; /// @@ -1713,7 +1713,7 @@ impl<'a> Builder<'a> { /// use ammonia::{Builder, Url, UrlRelative}; /// # use std::error::Error; /// - /// # fn do_main() -> Result<(), Box> { + /// # fn do_main() -> Result<(), Box> { /// let input = "This is an Ammonia example using the new() function."; /// let output = "This is an Ammonia example using the new() function."; /// @@ -1743,7 +1743,7 @@ impl<'a> Builder<'a> { /// use ammonia::Builder; /// # use std::error::Error; /// - /// # fn do_main() -> Result<(), Box> { + /// # fn do_main() -> Result<(), Box> { /// let a = Builder::new() /// .clean_from_reader(&b""[..])? // notice the `b` /// .to_string(); @@ -2817,7 +2817,7 @@ impl Document { /// use html5ever::serialize::{serialize, SerializeOpts}; /// /// # use std::error::Error; - /// # fn do_main() -> Result<(), Box> { + /// # fn do_main() -> Result<(), Box> { /// let input = "one link and one more"; /// let expected = "one more and one link"; ///