Skip to content

Conversation

arocull
Copy link
Contributor

@arocull arocull commented Sep 29, 2025

As mentioned in the migration guide, Callable return types do not use a result anymore. I got caught on this example while migrating this function.

Not sure if I should shorten the return value to a single line, or keep the type verbose for clarity.

Additionally fixes docs as pointed out by Pspritechologist in the Discord

@arocull arocull changed the title doc: fix from_sync_fn using deprecated Result<T> return doc: fix Callable::from_sync_fn using deprecated Result<T> return Sep 29, 2025
@arocull arocull changed the title doc: fix Callable::from_sync_fn using deprecated Result<T> return doc: fix Callable::from_sync_fn example using deprecated Result<T> return Sep 29, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1347

@arocull arocull force-pushed the fix-callable-from-sync-fn-docs branch from cd8b3e4 to 68fa5af Compare September 30, 2025 00:40
@Yarwin
Copy link
Contributor

Yarwin commented Oct 2, 2025

Looks good to me; Could you please rebase on the latest master? The previous run failed due to change in Godot 4.6 API (#1349).

@arocull arocull force-pushed the fix-callable-from-sync-fn-docs branch from 68fa5af to 11cf84d Compare October 2, 2025 14:21
@arocull arocull force-pushed the fix-callable-from-sync-fn-docs branch from 11cf84d to 3b92998 Compare October 3, 2025 13:39
@arocull arocull requested a review from Yarwin October 3, 2025 13:40
@Yarwin Yarwin added this pull request to the merge queue Oct 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 3, 2025
@Yarwin Yarwin added this pull request to the merge queue Oct 3, 2025
Merged via the queue into godot-rust:master with commit c3f705b Oct 3, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants