File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ impl Callable {
282
282
/// # use godot::prelude::*;
283
283
/// let callable = Callable::from_sync_fn("sum", |args: &[&Variant]| {
284
284
/// let sum: i32 = args.iter().map(|arg| arg.to::<i32>()).sum();
285
- /// Ok( sum.to_variant())
285
+ /// sum
286
286
/// });
287
287
/// ```
288
288
#[ cfg( feature = "experimental-threads" ) ]
@@ -630,9 +630,7 @@ mod custom_callable {
630
630
pub trait RustCallable : ' static + PartialEq + Hash + fmt:: Display + Send + Sync {
631
631
/// Invokes the callable with the given arguments as `Variant` references.
632
632
///
633
- /// Return `Ok(...)` if the call succeeded, and `Err(())` otherwise.
634
- /// Error handling is mostly needed in case argument number or types mismatch.
635
- #[ allow( clippy:: result_unit_err) ] // TODO remove once there's a clear error type here.
633
+ /// Errors are supported via panics.
636
634
fn invoke ( & mut self , args : & [ & Variant ] ) -> Variant ;
637
635
638
636
// TODO(v0.5): add object_id().
You can’t perform that action at this time.
0 commit comments