@@ -665,7 +665,7 @@ impl f16 {
665665    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
666666    #[ must_use = "method returns a new number and does not mutate the original value" ]  
667667    pub  fn  cbrt ( self )  -> f16  { 
668-         ( unsafe   {   cmath:: cbrtf ( self  as  f32 )   } )  as  f16 
668+         cmath:: cbrtf ( self  as  f32 )  as  f16 
669669    } 
670670
671671    /// Compute the distance between the origin and a point (`x`, `y`) on the 
@@ -701,7 +701,7 @@ impl f16 {
701701    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
702702    #[ must_use = "method returns a new number and does not mutate the original value" ]  
703703    pub  fn  hypot ( self ,  other :  f16 )  -> f16  { 
704-         ( unsafe   {   cmath:: hypotf ( self  as  f32 ,  other as  f32 )   } )  as  f16 
704+         cmath:: hypotf ( self  as  f32 ,  other as  f32 )  as  f16 
705705    } 
706706
707707    /// Computes the sine of a number (in radians). 
@@ -787,7 +787,7 @@ impl f16 {
787787    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
788788    #[ must_use = "method returns a new number and does not mutate the original value" ]  
789789    pub  fn  tan ( self )  -> f16  { 
790-         ( unsafe   {   cmath:: tanf ( self  as  f32 )   } )  as  f16 
790+         cmath:: tanf ( self  as  f32 )  as  f16 
791791    } 
792792
793793    /// Computes the arcsine of a number. Return value is in radians in 
@@ -822,7 +822,7 @@ impl f16 {
822822    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
823823    #[ must_use = "method returns a new number and does not mutate the original value" ]  
824824    pub  fn  asin ( self )  -> f16  { 
825-         ( unsafe   {   cmath:: asinf ( self  as  f32 )   } )  as  f16 
825+         cmath:: asinf ( self  as  f32 )  as  f16 
826826    } 
827827
828828    /// Computes the arccosine of a number. Return value is in radians in 
@@ -857,7 +857,7 @@ impl f16 {
857857    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
858858    #[ must_use = "method returns a new number and does not mutate the original value" ]  
859859    pub  fn  acos ( self )  -> f16  { 
860-         ( unsafe   {   cmath:: acosf ( self  as  f32 )   } )  as  f16 
860+         cmath:: acosf ( self  as  f32 )  as  f16 
861861    } 
862862
863863    /// Computes the arctangent of a number. Return value is in radians in the 
@@ -891,7 +891,7 @@ impl f16 {
891891    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
892892    #[ must_use = "method returns a new number and does not mutate the original value" ]  
893893    pub  fn  atan ( self )  -> f16  { 
894-         ( unsafe   {   cmath:: atanf ( self  as  f32 )   } )  as  f16 
894+         cmath:: atanf ( self  as  f32 )  as  f16 
895895    } 
896896
897897    /// Computes the four quadrant arctangent of `self` (`y`) and `other` (`x`) in radians. 
@@ -937,7 +937,7 @@ impl f16 {
937937    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
938938    #[ must_use = "method returns a new number and does not mutate the original value" ]  
939939    pub  fn  atan2 ( self ,  other :  f16 )  -> f16  { 
940-         ( unsafe   {   cmath:: atan2f ( self  as  f32 ,  other as  f32 )   } )  as  f16 
940+         cmath:: atan2f ( self  as  f32 ,  other as  f32 )  as  f16 
941941    } 
942942
943943    /// Simultaneously computes the sine and cosine of the number, `x`. Returns 
@@ -1006,7 +1006,7 @@ impl f16 {
10061006    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
10071007    #[ must_use = "method returns a new number and does not mutate the original value" ]  
10081008    pub  fn  exp_m1 ( self )  -> f16  { 
1009-         ( unsafe   {   cmath:: expm1f ( self  as  f32 )   } )  as  f16 
1009+         cmath:: expm1f ( self  as  f32 )  as  f16 
10101010    } 
10111011
10121012    /// Returns `ln(1+n)` (natural logarithm) more accurately than if 
@@ -1053,7 +1053,7 @@ impl f16 {
10531053    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
10541054    #[ must_use = "method returns a new number and does not mutate the original value" ]  
10551055    pub  fn  ln_1p ( self )  -> f16  { 
1056-         ( unsafe   {   cmath:: log1pf ( self  as  f32 )   } )  as  f16 
1056+         cmath:: log1pf ( self  as  f32 )  as  f16 
10571057    } 
10581058
10591059    /// Hyperbolic sine function. 
@@ -1088,7 +1088,7 @@ impl f16 {
10881088    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
10891089    #[ must_use = "method returns a new number and does not mutate the original value" ]  
10901090    pub  fn  sinh ( self )  -> f16  { 
1091-         ( unsafe   {   cmath:: sinhf ( self  as  f32 )   } )  as  f16 
1091+         cmath:: sinhf ( self  as  f32 )  as  f16 
10921092    } 
10931093
10941094    /// Hyperbolic cosine function. 
@@ -1123,7 +1123,7 @@ impl f16 {
11231123    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
11241124    #[ must_use = "method returns a new number and does not mutate the original value" ]  
11251125    pub  fn  cosh ( self )  -> f16  { 
1126-         ( unsafe   {   cmath:: coshf ( self  as  f32 )   } )  as  f16 
1126+         cmath:: coshf ( self  as  f32 )  as  f16 
11271127    } 
11281128
11291129    /// Hyperbolic tangent function. 
@@ -1158,7 +1158,7 @@ impl f16 {
11581158    #[ unstable( feature = "f16" ,  issue = "116909" ) ]  
11591159    #[ must_use = "method returns a new number and does not mutate the original value" ]  
11601160    pub  fn  tanh ( self )  -> f16  { 
1161-         ( unsafe   {   cmath:: tanhf ( self  as  f32 )   } )  as  f16 
1161+         cmath:: tanhf ( self  as  f32 )  as  f16 
11621162    } 
11631163
11641164    /// Inverse hyperbolic sine function. 
@@ -1287,7 +1287,7 @@ impl f16 {
12871287    // #[unstable(feature = "float_gamma", issue = "99842")] 
12881288    #[ must_use = "method returns a new number and does not mutate the original value" ]  
12891289    pub  fn  gamma ( self )  -> f16  { 
1290-         ( unsafe   {   cmath:: tgammaf ( self  as  f32 )   } )  as  f16 
1290+         cmath:: tgammaf ( self  as  f32 )  as  f16 
12911291    } 
12921292
12931293    /// Natural logarithm of the absolute value of the gamma function 
@@ -1323,7 +1323,7 @@ impl f16 {
13231323    #[ must_use = "method returns a new number and does not mutate the original value" ]  
13241324    pub  fn  ln_gamma ( self )  -> ( f16 ,  i32 )  { 
13251325        let  mut  signgamp:  i32  = 0 ; 
1326-         let  x = ( unsafe   {   cmath:: lgammaf_r ( self  as  f32 ,  & mut  signgamp)   } )  as  f16 ; 
1326+         let  x = cmath:: lgammaf_r ( self  as  f32 ,  & mut  signgamp)  as  f16 ; 
13271327        ( x,  signgamp) 
13281328    } 
13291329
@@ -1363,7 +1363,7 @@ impl f16 {
13631363    // #[unstable(feature = "float_erf", issue = "136321")] 
13641364    #[ inline]  
13651365    pub  fn  erf ( self )  -> f16  { 
1366-         ( unsafe   {   cmath:: erff ( self  as  f32 )   } )  as  f16 
1366+         cmath:: erff ( self  as  f32 )  as  f16 
13671367    } 
13681368
13691369    /// Complementary error function. 
@@ -1396,6 +1396,6 @@ impl f16 {
13961396    // #[unstable(feature = "float_erf", issue = "136321")] 
13971397    #[ inline]  
13981398    pub  fn  erfc ( self )  -> f16  { 
1399-         ( unsafe   {   cmath:: erfcf ( self  as  f32 )   } )  as  f16 
1399+         cmath:: erfcf ( self  as  f32 )  as  f16 
14001400    } 
14011401} 
0 commit comments