Remove redundant [..]s
This commit is contained in:
parent
e6b883c74f
commit
15de4cbc4b
45 changed files with 123 additions and 127 deletions
|
@ -46,7 +46,7 @@ impl SmallCStr {
|
|||
|
||||
#[inline]
|
||||
pub fn as_c_str(&self) -> &ffi::CStr {
|
||||
unsafe { ffi::CStr::from_bytes_with_nul_unchecked(&self.data[..]) }
|
||||
unsafe { ffi::CStr::from_bytes_with_nul_unchecked(&self.data) }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue