@@ -21,7 +21,7 @@ use std::str;
2121/// use url::Url;
2222/// # use std::error::Error;
2323///
24- /// # fn run() -> Result<(), Box<Error>> {
24+ /// # fn run() -> Result<(), Box<dyn Error>> {
2525/// let mut url = Url::parse("mailto:me@example.com")?;
2626/// assert!(url.path_segments_mut().is_err());
2727///
@@ -80,7 +80,7 @@ impl<'a> PathSegmentsMut<'a> {
8080 /// use url::Url;
8181 /// # use std::error::Error;
8282 ///
83- /// # fn run() -> Result<(), Box<Error>> {
83+ /// # fn run() -> Result<(), Box<dyn Error>> {
8484 /// let mut url = Url::parse("https://github.com/servo/rust-url/")?;
8585 /// url.path_segments_mut().map_err(|_| "cannot be base")?
8686 /// .clear().push("logout");
@@ -108,7 +108,7 @@ impl<'a> PathSegmentsMut<'a> {
108108 /// use url::Url;
109109 /// # use std::error::Error;
110110 ///
111- /// # fn run() -> Result<(), Box<Error>> {
111+ /// # fn run() -> Result<(), Box<dyn Error>> {
112112 /// let mut url = Url::parse("https://github.com/servo/rust-url/")?;
113113 /// url.path_segments_mut().map_err(|_| "cannot be base")?
114114 /// .push("pulls");
@@ -177,7 +177,7 @@ impl<'a> PathSegmentsMut<'a> {
177177 /// use url::Url;
178178 /// # use std::error::Error;
179179 ///
180- /// # fn run() -> Result<(), Box<Error>> {
180+ /// # fn run() -> Result<(), Box<dyn Error>> {
181181 /// let mut url = Url::parse("https://github.com/")?;
182182 /// let org = "servo";
183183 /// let repo = "rust-url";
@@ -197,7 +197,7 @@ impl<'a> PathSegmentsMut<'a> {
197197 /// use url::Url;
198198 /// # use std::error::Error;
199199 ///
200- /// # fn run() -> Result<(), Box<Error>> {
200+ /// # fn run() -> Result<(), Box<dyn Error>> {
201201 /// let mut url = Url::parse("https://github.com/servo")?;
202202 /// url.path_segments_mut().map_err(|_| "cannot be base")?
203203 /// .extend(&["..", "rust-url", ".", "pulls"]);
0 commit comments