wgctrl-rs: remove loud debug println
parent
05d78eb253
commit
10ae9b51eb
|
@ -338,14 +338,12 @@ pub fn apply(builder: DeviceConfigBuilder, iface: &InterfaceName) -> io::Result<
|
||||||
|
|
||||||
request.push('\n');
|
request.push('\n');
|
||||||
|
|
||||||
println!("writing: {}", request);
|
|
||||||
sock.write_all(request.as_bytes())?;
|
sock.write_all(request.as_bytes())?;
|
||||||
|
|
||||||
let mut reader = BufReader::new(sock);
|
let mut reader = BufReader::new(sock);
|
||||||
let mut line = String::new();
|
let mut line = String::new();
|
||||||
|
|
||||||
reader.read_line(&mut line)?;
|
reader.read_line(&mut line)?;
|
||||||
println!("got line: {}", line);
|
|
||||||
let split: Vec<&str> = line.trim_end().splitn(2, '=').collect();
|
let split: Vec<&str> = line.trim_end().splitn(2, '=').collect();
|
||||||
match &split[..] {
|
match &split[..] {
|
||||||
["errno", "0"] => Ok(()),
|
["errno", "0"] => Ok(()),
|
||||||
|
|
Loading…
Reference in New Issue