Function remove_suffix

Source
pub fn remove_suffix<'a, 'b>(
    string: &'a OsStr,
    suffix: Option<&'b OsStr>,
) -> &'a OsStr