Remove usage of deprecated functions

This commit is contained in:
Alex Crichton 2018-12-14 12:12:26 -08:00
parent 24b3977f6a
commit dfc233c613

View file

@ -38,8 +38,8 @@ pub fn simd_test(
_ => panic!("expected #[simd_test(enable = \"feature\")]"),
};
let enable_feature = enable_feature
.trim_left_matches('"')
.trim_right_matches('"');
.trim_start_matches('"')
.trim_end_matches('"');
let target_features: Vec<String> = enable_feature
.replace('+', "")
.split(',')