Skip to content

Commit 7737c1c

Browse files
committed
Fixup warning (extra semicolon)
1 parent 375f7a2 commit 7737c1c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

qmetaobject/src/qmetatype.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ fn test_qmetatype() {
380380
#[derive(Default, Clone, Debug, Eq, PartialEq)]
381381
struct MyInt {
382382
x: u32,
383-
};
384-
impl QMetaType for MyInt {};
383+
}
384+
impl QMetaType for MyInt {}
385385

386386
assert_eq!(MyInt::register(Some(&std::ffi::CString::new("MyInt").unwrap())), MyInt::id());
387387
let m42 = MyInt { x: 42 };
@@ -399,8 +399,8 @@ fn test_qmetatype() {
399399
#[should_panic(expected = "Attempt to register the same type with different name")]
400400
fn test_qmetatype_register_wrong_type1() {
401401
#[derive(Default, Clone, Debug, Eq, PartialEq)]
402-
struct MyType {};
403-
impl QMetaType for MyType {};
402+
struct MyType {}
403+
impl QMetaType for MyType {}
404404
// registering with the name of an existing type should panic
405405
MyType::register(Some(&std::ffi::CString::new("QString").unwrap()));
406406
}
@@ -409,8 +409,8 @@ fn test_qmetatype_register_wrong_type1() {
409409
#[should_panic(expected = "Attempt to register the same type with different name")]
410410
fn test_qmetatype_register_wrong_type2() {
411411
#[derive(Default, Clone, Debug, Eq, PartialEq)]
412-
struct MyType {};
413-
impl QMetaType for MyType {};
412+
struct MyType {}
413+
impl QMetaType for MyType {}
414414
String::register(Some(&std::ffi::CString::new("String").unwrap()));
415415
// registering with the name of an existing type should panic
416416
MyType::register(Some(&std::ffi::CString::new("String").unwrap()));

qmetaobject/src/qtdeclarative.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ pub fn qml_register_singleton_type<T: QObject + QSingletonInit + Sized + Default
537537
std::process::abort()
538538
}
539539
}
540-
};
540+
}
541541
let callback_fn: QmlRegisterSingletonTypeCallback = callback_fn::<T>;
542542

543543
cpp!(unsafe [

0 commit comments

Comments
 (0)