impl fmt::Display for Sha256 for Logging

This commit is contained in:
2019-06-03 19:05:55 +02:00
parent 189b1955d7
commit b2ba9a9ba4
2 changed files with 13 additions and 7 deletions

View File

@ -99,12 +99,7 @@ impl ProtocolHandler for ServerState {
let data = data_store.read_texture_file_by_hash(&hash);
println!(
"{}: Texture File: '{:?}' found: {}",
con,
&hash,
data.is_ok()
);
println!("{}: Texture File: '{}' found: {}", con, &hash, data.is_ok());
Ok(data?)
}
@ -123,7 +118,7 @@ impl ProtocolHandler for ServerState {
let preview = data_store.get_texture_preview(&hash, format);
println!(
"{}: Texture Preview: '{:?}' found: {}",
"{}: Texture Preview: '{}' found: {}",
con,
&hash,
preview.is_ok()