| skipped 257 lines |
258 | 258 | | if let Some(ref poll_command) = args.poll_command { |
259 | 259 | | println!("passing variable value to {} ...", poll_command); |
260 | 260 | | Command::new(poll_command) |
261 | | - | .arg(&result.result.result.value) |
| 261 | + | .arg(&result.result.result.value.unwrap_or("".to_owned())) |
262 | 262 | | .spawn() |
263 | 263 | | .unwrap() |
264 | 264 | | .wait() |
265 | 265 | | .unwrap(); |
266 | 266 | | } else { |
267 | | - | println!("{}", result.result.result.value); |
| 267 | + | println!("{}", result.result.result.value.unwrap_or("".to_owned())); |
268 | 268 | | } |
269 | 269 | | } else { |
270 | 270 | | println!("got non text message: {:?}", resp); |
| skipped 9 lines |