Fallout
This commit is contained in:
parent
48f50e1e98
commit
e0684e8769
64 changed files with 211 additions and 211 deletions
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue