(s: &str)
| 256 | } |
| 257 | |
| 258 | fn parse_svg_points(s: &str) -> Vec<(f64, f64)> { |
| 259 | s.split_whitespace() |
| 260 | .filter_map(|p| { |
| 261 | let (x, y) = p.split_once(',')?; |
| 262 | Some((x.parse().ok()?, y.parse().ok()?)) |
| 263 | }) |
| 264 | .collect() |
| 265 | } |
| 266 | |
| 267 | fn format_svg_points(pts: &[(f64, f64)]) -> String { |
| 268 | pts.iter() |
no outgoing calls
no test coverage detected