Debian Codegraph @

third_party/rust/minidump-common/src/utils.rs

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