remove unneeded allow flag

There isn't anything deprecated being used in this function.
This commit is contained in:
Steve Klabnik 2016-06-30 17:06:52 -04:00
parent c2b56fb7a0
commit 9ad64e41c5

View File

@ -1057,7 +1057,6 @@ impl PathBuf {
self._push(path.as_ref())
}
#[allow(deprecated)]
fn _push(&mut self, path: &Path) {
// in general, a separator is needed if the rightmost byte is not a separator
let mut need_sep = self.as_mut_vec().last().map(|c| !is_sep_byte(*c)).unwrap_or(false);