Skip to content

Commit 5ebd0ae

Browse files
committed
macos: Fix Clippy lint
1 parent c5761cb commit 5ebd0ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/platform/macos/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,10 @@ unsafe fn attach_command_handlers(handler: Arc<dyn Fn(MediaControlEvent)>) {
230230
let handler = handler.clone();
231231
// event of type MPChangePlaybackPositionCommandEvent
232232
move |event: id| -> NSInteger {
233-
let position = event
233+
let position = *event
234234
.as_ref()
235235
.unwrap()
236-
.get_ivar::<f64>("_positionTime")
237-
.clone();
236+
.get_ivar::<f64>("_positionTime");
238237
(handler)(MediaControlEvent::SetPosition(MediaPosition(
239238
Duration::from_secs_f64(position),
240239
)));

0 commit comments

Comments
 (0)