@@ -380,8 +380,8 @@ fn test_qmetatype() {
380
380
#[ derive( Default , Clone , Debug , Eq , PartialEq ) ]
381
381
struct MyInt {
382
382
x : u32 ,
383
- } ;
384
- impl QMetaType for MyInt { } ;
383
+ }
384
+ impl QMetaType for MyInt { }
385
385
386
386
assert_eq ! ( MyInt :: register( Some ( & std:: ffi:: CString :: new( "MyInt" ) . unwrap( ) ) ) , MyInt :: id( ) ) ;
387
387
let m42 = MyInt { x : 42 } ;
@@ -399,8 +399,8 @@ fn test_qmetatype() {
399
399
#[ should_panic( expected = "Attempt to register the same type with different name" ) ]
400
400
fn test_qmetatype_register_wrong_type1 ( ) {
401
401
#[ derive( Default , Clone , Debug , Eq , PartialEq ) ]
402
- struct MyType { } ;
403
- impl QMetaType for MyType { } ;
402
+ struct MyType { }
403
+ impl QMetaType for MyType { }
404
404
// registering with the name of an existing type should panic
405
405
MyType :: register ( Some ( & std:: ffi:: CString :: new ( "QString" ) . unwrap ( ) ) ) ;
406
406
}
@@ -409,8 +409,8 @@ fn test_qmetatype_register_wrong_type1() {
409
409
#[ should_panic( expected = "Attempt to register the same type with different name" ) ]
410
410
fn test_qmetatype_register_wrong_type2 ( ) {
411
411
#[ derive( Default , Clone , Debug , Eq , PartialEq ) ]
412
- struct MyType { } ;
413
- impl QMetaType for MyType { } ;
412
+ struct MyType { }
413
+ impl QMetaType for MyType { }
414
414
String :: register ( Some ( & std:: ffi:: CString :: new ( "String" ) . unwrap ( ) ) ) ;
415
415
// registering with the name of an existing type should panic
416
416
MyType :: register ( Some ( & std:: ffi:: CString :: new ( "String" ) . unwrap ( ) ) ) ;
0 commit comments