Skip to content

Commit c8f5d4e

Browse files
author
Justin Pflueger
committed
fix linting errors
Signed-off-by: Justin Pflueger <[email protected]>
1 parent 6fe8c4c commit c8f5d4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ fn serve(req: Request) -> Result<Response> {
8282
// read from the fallback path if the variable exists
8383
let read_result = match std::env::var(FALLBACK_PATH_ENV) {
8484
Ok(fallback_path) => {
85-
println!("Fallback Path: {:?}", fallback_path);
85+
println!("Fallback Path: {fallback_path:?}");
8686
FileServer::read(path, &enc).or_else(|_| FileServer::read(fallback_path.as_str(), &enc))
8787
}
8888
Err(e) => {
89-
eprintln!("Cannot read env var: {:?}", e);
89+
eprintln!("Cannot read env var: {e:?}");
9090
FileServer::read(path, &enc)
9191
}
9292
};
9393

9494
let body = match read_result {
9595
Ok(b) => Some(b),
9696
Err(e) => {
97-
eprintln!("Cannot read file: {:?}", e);
97+
eprintln!("Cannot read file: {e:?}");
9898
return not_found();
9999
}
100100
};

0 commit comments

Comments
 (0)