mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove unnecessary debug from try_open_with_path
Former-commit-id: 891d24c247d15f406ebd24ca923b62e6f43bf9ea
This commit is contained in:
parent
e8aa680aad
commit
53a78e1c2f
@ -108,16 +108,7 @@ fn try_open_with_path(name: &str) -> Option<File> {
|
||||
]
|
||||
.into_iter()
|
||||
.map(|bp| [bp, name].concat())
|
||||
.find_map(|ref filename| match File::open(filename) {
|
||||
Ok(file) => {
|
||||
debug!("Loading {} successful", filename);
|
||||
Some(file)
|
||||
}
|
||||
Err(err) => {
|
||||
error!("Loading {} failed: {}", filename, err);
|
||||
None
|
||||
}
|
||||
})
|
||||
.find_map(|ref filename| File::open(filename).ok())
|
||||
}
|
||||
|
||||
pub fn load_from_path(name: &str) -> Result<Vec<u8>, Error> {
|
||||
|
Loading…
Reference in New Issue
Block a user