(base: &str, segment: &str)
| 655 | |
| 656 | #[cfg(all(feature = "rocket", feature = "openapi"))] |
| 657 | fn join_mount_path(base: &str, segment: &str) -> String { |
| 658 | if base == "/" { |
| 659 | format!("/{}", segment.trim_start_matches('/')) |
| 660 | } else { |
| 661 | format!( |
| 662 | "{}/{}", |
| 663 | base.trim_end_matches('/'), |
| 664 | segment.trim_start_matches('/') |
| 665 | ) |
| 666 | } |
| 667 | } |
no outgoing calls
no test coverage detected