mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
Narrow return type of location::set: cint -> bool
This commit is contained in:
committed by
Floris Bruynooghe
parent
d16bdafaf0
commit
a9dd78f622
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user