fix warning in build.rs
This commit is contained in:
parent
03e12d6feb
commit
2416ffd7dc
1 changed files with 2 additions and 3 deletions
5
build.rs
5
build.rs
|
@ -207,7 +207,7 @@ fn process_dir<P: AsRef<Path> + Copy>(
|
||||||
} else if path.extension().map(|ext| ext == "svg").unwrap_or(false) {
|
} else if path.extension().map(|ext| ext == "svg").unwrap_or(false) {
|
||||||
process_svg(&path, dir, writer, groups);
|
process_svg(&path, dir, writer, groups);
|
||||||
} else if path.extension().map(|ext| ext == "ogg").unwrap_or(false) {
|
} else if path.extension().map(|ext| ext == "ogg").unwrap_or(false) {
|
||||||
process_ogg(&path, dir, writer, groups);
|
process_ogg(&path, writer, groups);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -258,9 +258,8 @@ fn process_svg<P: AsRef<Path> + Copy, Q: AsRef<Path>>(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process_ogg<P: AsRef<Path> + Copy, Q: AsRef<Path>>(
|
fn process_ogg<P: AsRef<Path> + Copy>(
|
||||||
file: P,
|
file: P,
|
||||||
dir: Q,
|
|
||||||
writer: &mut AssetsWriter,
|
writer: &mut AssetsWriter,
|
||||||
groups: &[String]
|
groups: &[String]
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue