Remove redundant type specification
This commit is contained in:
parent
d51a4fc1d0
commit
0b222aa958
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ pub struct ZipFileData
|
||||||
|
|
||||||
impl ZipFileData {
|
impl ZipFileData {
|
||||||
pub fn file_name_sanitized(&self) -> ::std::path::PathBuf {
|
pub fn file_name_sanitized(&self) -> ::std::path::PathBuf {
|
||||||
let no_null_filename: String = match self.file_name.find('\0') {
|
let no_null_filename = match self.file_name.find('\0') {
|
||||||
Some(index) => &self.file_name[0..index],
|
Some(index) => &self.file_name[0..index],
|
||||||
None => &self.file_name,
|
None => &self.file_name,
|
||||||
}.to_string();
|
}.to_string();
|
||||||
|
|
Loading…
Add table
Reference in a new issue