Rename variable

This commit is contained in:
Michael Herger 2018-01-31 23:56:31 +01:00
parent d930a1e936
commit a55b924393

View file

@ -148,7 +148,7 @@ fn setup(args: &[String]) -> Setup {
let zeroconf_port = let zeroconf_port =
matches.opt_str("zeroconf-port") matches.opt_str("zeroconf-port")
.map(|volume| volume.parse::<u16>().unwrap()) .map(|port| port.parse::<u16>().unwrap())
.unwrap_or(0); .unwrap_or(0);
let name = matches.opt_str("name").unwrap(); let name = matches.opt_str("name").unwrap();