minidump_common/
utils.rs

1//! Utility functions, only pathname handling at the moment.
2
3pub fn basename(f: &str) -> &str {
4    match f.rfind(['/', '\\']) {
5        None => f,
6        Some(index) => &f[(index + 1)..],
7    }
8}