wgctrl-rs: remove loud debug println

pull/48/head
Jake McGinty 2021-04-11 16:33:55 +09:00
parent 05d78eb253
commit 10ae9b51eb
1 changed files with 0 additions and 2 deletions

View File

@ -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(()),