add README.md

This commit is contained in:
Florian Stecker
2024-05-23 15:50:55 -04:00
parent 700f1d3de2
commit d7d5c2100d
2 changed files with 29 additions and 2 deletions

View File

@@ -17,9 +17,9 @@ fn main() -> Result<(), MainError> {
let filename: &str = args[1].as_ref();
let sockaddr: &str = args.get(2)
.map_or("localhost:8080", <String as Deref>::deref);
.map_or("localhost:8080", Deref::deref);
let http_path: String = args.get(3)
.map_or(String::new(), <String as ToOwned>::to_owned);
.map_or(String::new(), Clone::clone);
http_path_set(http_path);
let file = OpenOptions::new().read(true).open(filename)?;