Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/jackdaw_api_internal/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![feature(try_trait_v2)]
#![feature(try_trait_v2_residual)]
//! Public API for Jackdaw editor extensions.
//!
//! Extensions are entities. An extension entity holds an [`lifecycle::Extension`]
Expand Down
6 changes: 5 additions & 1 deletion crates/jackdaw_api_internal/src/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{
borrow::Cow,
collections::BTreeMap,
convert::Infallible,
ops::{ControlFlow, FromResidual, Try},
ops::{ControlFlow, FromResidual, Residual, Try},
};

use bevy::ecs::system::{SystemId, SystemState};
Expand Down Expand Up @@ -305,6 +305,10 @@ impl<E> FromResidual<Result<Infallible, E>> for OperatorResult {
}
}

impl Residual<()> for OperatorCancelled {
type TryType = OperatorResult;
}

/// Extension trait on [`World`] for calling operators by id.
///
/// Usage:
Expand Down
Loading