@@ -164,7 +164,7 @@ impl TypeMap<'ll, 'tcx> {
164164 type_ : Ty < ' tcx > ) -> UniqueTypeId {
165165 // Let's see if we already have something in the cache
166166 if let Some ( unique_type_id) = self . type_to_unique_id . get ( & type_) . cloned ( ) {
167- return unique_type_id
167+ return unique_type_id;
168168 }
169169 // if not, generate one
170170
@@ -290,7 +290,7 @@ macro_rules! return_if_metadata_created_in_meantime {
290290 . borrow( )
291291 . find_metadata_for_unique_id( $unique_type_id)
292292 {
293- return MetadataCreationResult :: new( metadata, true )
293+ return MetadataCreationResult :: new( metadata, true ) ;
294294 }
295295 )
296296}
@@ -552,7 +552,7 @@ pub fn type_metadata(
552552 . borrow ( )
553553 . find_metadata_for_unique_id ( unique_type_id)
554554 {
555- return Err ( metadata)
555+ return Err ( metadata) ;
556556 }
557557
558558 Ok ( MetadataCreationResult :: new ( pointer_type_metadata ( cx, t, pointee_metadata) ,
@@ -612,7 +612,7 @@ pub fn type_metadata(
612612 . borrow ( )
613613 . find_metadata_for_unique_id ( unique_type_id)
614614 {
615- return metadata
615+ return metadata;
616616 }
617617
618618 // This is actually a function pointer, so wrap it in pointer DI
@@ -1477,7 +1477,7 @@ fn prepare_enum_metadata(
14771477 } ;
14781478
14791479 if let ( & layout:: Abi :: Scalar ( _) , Some ( discr) ) = ( & layout. abi , discriminant_type_metadata) {
1480- return FinalMetadata ( discr)
1480+ return FinalMetadata ( discr) ;
14811481 }
14821482
14831483 let ( enum_type_size, enum_type_align) = layout. size_and_align ( ) ;
0 commit comments