Skip to content

Commit dba9152

Browse files
authored
Fix build warnings (#14)
1 parent 75cc0ea commit dba9152

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/image_slideshow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ where
118118
let delegate = delegate!("AppDelegate", {
119119
app: id = app,
120120
send: *const c_void = Box::into_raw(Box::new(send)) as *const c_void,
121-
(applicationDidFinishLaunching:) => on_finish_launching as extern fn(&Object, Sel, id)
121+
(applicationDidFinishLaunching:) => on_finish_launching as extern "C" fn(&Object, Sel, id)
122122
});
123123
let _: () = msg_send![app, setDelegate: delegate];
124124

examples/video_inference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ where
9393
let delegate = delegate!("AppDelegate", {
9494
app: id = app,
9595
send: *const c_void = Box::into_raw(Box::new(send)) as *const c_void,
96-
(applicationDidFinishLaunching:) => on_finish_launching as extern fn(&Object, Sel, id)
96+
(applicationDidFinishLaunching:) => on_finish_launching as extern "C" fn(&Object, Sel, id)
9797
});
9898
app.setDelegate_(delegate);
9999

src/video/meta.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ unsafe impl Send for VideoAnomalyMeta {}
2828
unsafe impl Sync for VideoAnomalyMeta {}
2929

3030
impl VideoClassificationMeta {
31-
pub fn add(buffer: &mut gst::BufferRef) -> gst::MetaRefMut<Self, gst::meta::Standalone> {
31+
pub fn add(buffer: &mut gst::BufferRef) -> gst::MetaRefMut<'_, Self, gst::meta::Standalone> {
3232
unsafe {
3333
// First add it with empty params
3434
let meta = gst::ffi::gst_buffer_add_meta(
@@ -57,7 +57,7 @@ impl VideoClassificationMeta {
5757
}
5858

5959
impl VideoAnomalyMeta {
60-
pub fn add(buffer: &mut gst::BufferRef) -> gst::MetaRefMut<Self, gst::meta::Standalone> {
60+
pub fn add(buffer: &mut gst::BufferRef) -> gst::MetaRefMut<'_, Self, gst::meta::Standalone> {
6161
unsafe {
6262
// First add it with empty params
6363
let meta = gst::ffi::gst_buffer_add_meta(

0 commit comments

Comments
 (0)