From 2bb97c08857227f0b14e6f4b391073e2a662c4f3 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Mon, 24 Jul 2023 12:24:24 -0400 Subject: [PATCH] Revert "mach_port: Removed redundant `pub use`" This reverts commit 6d00383bafd95f7457a288e1948fc4111a34ae9e. It broke semver because it removed the export of CFIndex which which older versions of the core-foundation crate are depending on. Fixes #619 --- core-foundation-sys/src/mach_port.rs | 3 ++- core-foundation/src/mach_port.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core-foundation-sys/src/mach_port.rs b/core-foundation-sys/src/mach_port.rs index a25a44c12..1474d311a 100644 --- a/core-foundation-sys/src/mach_port.rs +++ b/core-foundation-sys/src/mach_port.rs @@ -7,8 +7,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use base::{CFAllocatorRef, CFIndex, CFTypeID, Boolean, mach_port_t}; use string::CFStringRef; +pub use base::{CFAllocatorRef, CFIndex, CFTypeID}; +use base::{Boolean, mach_port_t}; use runloop::CFRunLoopSourceRef; use std::os::raw::c_void; diff --git a/core-foundation/src/mach_port.rs b/core-foundation/src/mach_port.rs index cd39c16a2..6112e3aae 100644 --- a/core-foundation/src/mach_port.rs +++ b/core-foundation/src/mach_port.rs @@ -1,4 +1,4 @@ -use base::{TCFType, CFIndex}; +use base::TCFType; use core_foundation_sys::base::kCFAllocatorDefault; use runloop::CFRunLoopSource; pub use core_foundation_sys::mach_port::*;