(&mut self, cx: &mut Context<Self>)
| 1674 | } else { |
| 1675 | url.find('/').map(|i| &url[i..]).unwrap_or(url) |
| 1676 | }; |
| 1677 | |
| 1678 | let path = path.split('?').next().unwrap_or(path); |
| 1679 | |
| 1680 | if path.len() > 32 { |
| 1681 | Some(path[..32].to_string()) |
| 1682 | } else { |
| 1683 | Some(path.to_string()) |
| 1684 | } |
| 1685 | } |
no test coverage detected