Narrow return type of location::set: cint -> bool

This commit is contained in:
Dmitry Bogatov
2019-10-13 15:16:32 +00:00
committed by Floris Bruynooghe
parent d16bdafaf0
commit a9dd78f622
3 changed files with 5 additions and 5 deletions

View File

@@ -746,7 +746,7 @@ pub unsafe fn dc_cmdline(context: &Context, line: &str) -> Result<(), failure::E
let longitude = arg2.parse()?;
let continue_streaming = location::set(context, latitude, longitude, 0.);
if 0 != continue_streaming {
if continue_streaming {
println!("Success, streaming should be continued.");
} else {
println!("Success, streaming can be stoppped.");