Skip to content

Commit 99fa543

Browse files
Hawk777sdroege
authored andcommitted
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 4eb00b2 commit 99fa543

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub use action_entry::{ActionEntry, ActionEntryBuilder};
1919
pub use application::{ApplicationBusyGuard, ApplicationHoldGuard};
2020
mod async_initable;
2121
mod cancellable;
22+
pub use cancellable::CancelledHandlerId;
2223
mod cancellable_future;
2324
pub use crate::cancellable_future::{CancellableFuture, Cancelled};
2425
mod converter;

0 commit comments

Comments
 (0)