Skip to content

Commit 4938a33

Browse files
sys: Move UniChar type back to string module
Fixes a semver breakage
1 parent cf25b7d commit 4938a33

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

core-foundation-sys/src/base.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pub type RegionCode = SInt16;
3434
pub type UTF32Char = c_uint;
3535
pub type UTF16Char = c_ushort;
3636
pub type UTF8Char = c_uchar;
37-
pub type UniChar = c_ushort;
3837

3938
#[repr(isize)]
4039
#[derive(Clone, Copy, Debug, PartialEq)]

core-foundation-sys/src/characterset.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
// except according to those terms.
99

1010
use std::os::raw::c_void;
11-
use base::{Boolean, CFAllocatorRef, CFIndex, CFRange, CFTypeID, UTF32Char, UniChar};
11+
use base::{Boolean, CFAllocatorRef, CFIndex, CFRange, CFTypeID, UTF32Char};
1212
use data::CFDataRef;
13-
use string::CFStringRef;
13+
use string::{CFStringRef, UniChar};
1414

1515
pub type CFCharacterSetPredefinedSet = CFIndex;
1616

core-foundation-sys/src/string.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// option. This file may not be copied, modified, or distributed
88
// except according to those terms.
99

10-
use std::os::raw::{c_char, c_void, c_ulong, c_double};
11-
use base::{Boolean, CFOptionFlags, CFIndex, CFAllocatorRef, ConstStr255Param, CFRange, CFTypeID, SInt32, UInt32, UInt8, UniChar, CFComparisonResult, StringPtr, ConstStringPtr, UTF32Char};
10+
use std::os::raw::{c_char, c_void, c_ulong, c_double, c_ushort};
11+
use base::{Boolean, CFOptionFlags, CFIndex, CFAllocatorRef, ConstStr255Param, CFRange, CFTypeID, SInt32, UInt32, UInt8, CFComparisonResult, StringPtr, ConstStringPtr, UTF32Char};
1212
use array::CFArrayRef;
1313
use data::CFDataRef;
1414
use dictionary::CFDictionaryRef;
@@ -27,6 +27,7 @@ pub const kCFCompareWidthInsensitive: CFStringCompareFlags = 256;
2727
pub const kCFCompareForcedOrdering: CFStringCompareFlags = 512;
2828

2929
pub type CFStringEncoding = UInt32;
30+
pub type UniChar = c_ushort;
3031

3132
// macOS built-in encodings.
3233

core-text/src/font.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ use font_descriptor::{CTFontSymbolicTraits, CTFontTraits, SymbolicTraitAccessors
1515
use font_manager::create_font_descriptor;
1616

1717
use core_foundation::array::{CFArray, CFArrayRef};
18-
use core_foundation::base::{CFIndex, CFOptionFlags, CFType, CFTypeID, CFTypeRef, TCFType, UniChar};
18+
use core_foundation::base::{CFIndex, CFOptionFlags, CFType, CFTypeID, CFTypeRef, TCFType};
1919
use core_foundation::data::{CFData, CFDataRef};
2020
use core_foundation::dictionary::{CFDictionary, CFDictionaryRef};
2121
use core_foundation::number::CFNumber;
22-
use core_foundation::string::{CFString, CFStringRef};
22+
use core_foundation::string::{CFString, CFStringRef, UniChar};
2323
use core_foundation::url::{CFURL, CFURLRef};
2424
use core_graphics::base::CGFloat;
2525
use core_graphics::context::CGContext;

0 commit comments

Comments
 (0)