add README.md
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user