Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Mar 19, 2024
1 parent fd64567 commit bc29d7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion std/src/geolocation/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Geolocator {
platform::listen(
&self.device_geolocator,
Arc::new(move |event: Event| {
tx.unbounded_send(event);
tx.unbounded_send(event).ok();
}),
)
}
Expand Down
2 changes: 1 addition & 1 deletion std/src/geolocation/use_geolocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn use_geolocation() -> Result<Geocoordinates, Error> {

// Start listening
INIT.call_once(|| {
let _ = geolocator.listen(listener.clone());
geolocator.listen(listener).ok();
});

// Get the result and return a clone
Expand Down

0 comments on commit bc29d7c

Please sign in to comment.