1
Fork 0
This commit is contained in:
Nick Cameron 2015-01-06 10:16:49 +13:00
parent 48f50e1e98
commit e0684e8769
64 changed files with 211 additions and 211 deletions

View file

@ -896,7 +896,7 @@ impl BytesContainer for CString {
}
}
impl<'a, Sized? T: BytesContainer> BytesContainer for &'a T {
impl<'a, T: ?Sized + BytesContainer> BytesContainer for &'a T {
#[inline]
fn container_as_bytes(&self) -> &[u8] {
(**self).container_as_bytes()

View file

@ -344,7 +344,7 @@ impl Path {
/// Returns a normalized byte vector representation of a path, by removing all empty
/// components, and unnecessary . and .. components.
fn normalize<Sized? V: AsSlice<u8>>(v: &V) -> Vec<u8> {
fn normalize<V: ?Sized + AsSlice<u8>>(v: &V) -> Vec<u8> {
// borrowck is being very picky
let val = {
let is_abs = !v.as_slice().is_empty() && v.as_slice()[0] == SEP_BYTE;