Skip to content

Commit 6844a2d

Browse files
committed
Re-export CancelledHandlerId
This type is effectively public, because it’s returned by `Cancellable::connect_cancelled`, but because it’s not re-exported it can’t be named, making it awkward to e.g. save it in a struct field. Fixes GH-1649.
1 parent 83d3161 commit 6844a2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gio/src/cancellable_future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::{
99

1010
use pin_project_lite::pin_project;
1111

12-
use crate::{cancellable::CancelledHandlerId, prelude::*, Cancellable, IOErrorEnum};
12+
use crate::{prelude::*, Cancellable, CancelledHandlerId, IOErrorEnum};
1313

1414
// rustdoc-stripper-ignore-next
1515
/// Indicator that the [`CancellableFuture`] was cancelled.

gio/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub use application::{ApplicationBusyGuard, ApplicationHoldGuard};
2020
mod async_initable;
2121
mod cancellable;
2222
mod cancellable_future;
23-
pub use crate::cancellable_future::{CancellableFuture, Cancelled};
23+
pub use crate::cancellable_future::{CancellableFuture, Cancelled, CancelledHandlerId};
2424
mod converter;
2525
mod credentials;
2626
mod data_input_stream;

0 commit comments

Comments
 (0)