From fca78fb0c19fd916765bb2b3e4048ec8c4f03c64 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 18 Jun 2021 06:55:38 -0400 Subject: [PATCH] Rename set_common_data to set_common_data_69 (#702) --- src/icu.rs | 2 +- tests/test_api.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/icu.rs b/src/icu.rs index ded9ca76..41150ab5 100644 --- a/src/icu.rs +++ b/src/icu.rs @@ -35,7 +35,7 @@ extern "C" { /// This function has no effect on application (non ICU) data. See udata_setAppData() for similar /// functionality for application data. // TODO(ry) Map error code to something useful. -pub fn set_common_data(data: &'static [u8]) -> Result<(), i32> { +pub fn set_common_data_69(data: &'static [u8]) -> Result<(), i32> { let mut error_code = 0i32; unsafe { udata_setCommonData_69(data.as_ptr(), &mut error_code); diff --git a/tests/test_api.rs b/tests/test_api.rs index 7fa8325f..ae783dee 100644 --- a/tests/test_api.rs +++ b/tests/test_api.rs @@ -25,7 +25,7 @@ impl Drop for SetupGuard { fn setup() -> SetupGuard { static START: std::sync::Once = std::sync::Once::new(); START.call_once(|| { - assert!(v8::icu::set_common_data(align_data::include_aligned!( + assert!(v8::icu::set_common_data_69(align_data::include_aligned!( align_data::Align16, "../third_party/icu/common/icudtl.dat" )) @@ -4882,7 +4882,7 @@ fn icu_date() { #[test] fn icu_set_common_data_fail() { - assert!(v8::icu::set_common_data(&[1, 2, 3]).is_err()); + assert!(v8::icu::set_common_data_69(&[1, 2, 3]).is_err()); } #[test]