(&self, f: &mut Formatter<'_>)
| 452 | |
| 453 | #[cfg(feature = "egg")] |
| 454 | fn fmt_expanded_url(&self, f: &mut Formatter<'_>) -> Result { |
| 455 | let token = self.token(); |
| 456 | let leading_len = token.leading_len() as usize; |
| 457 | let trailing_len = token.trailing_len() as usize; |
| 458 | let url_prefix = &self.source[..leading_len]; |
| 459 | let url_content = &self.source[leading_len..(self.source.len() - trailing_len)]; |
| 460 | f.write_str(url_prefix)?; |
| 461 | f.write_str(" ")?; |
| 462 | f.write_str(url_content.trim())?; |
| 463 | f.write_str(" ")?; |
| 464 | if token.url_has_closing_paren() { |
| 465 | f.write_str(")")?; |
| 466 | } |
| 467 | Ok(()) |
| 468 | } |
| 469 | |
| 470 | #[cfg(feature = "egg")] |
| 471 | fn fmt_expanded_string(&self, f: &mut Formatter<'_>) -> Result { |
no test coverage detected