Remove redundant type specification

This commit is contained in:
Johan Andersson 2018-06-20 01:38:43 +02:00
parent d51a4fc1d0
commit 0b222aa958

View file

@ -63,7 +63,7 @@ pub struct ZipFileData
impl ZipFileData {
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],
None => &self.file_name,
}.to_string();