Skip to content

Fix 'unsafe attr without unsafe' error#4534

Merged
coolreader18 merged 1 commit intomasterfrom
noa/unsafe-settings-attr
Mar 3, 2026
Merged

Fix 'unsafe attr without unsafe' error#4534
coolreader18 merged 1 commit intomasterfrom
noa/unsafe-settings-attr

Conversation

@coolreader18
Copy link
Collaborator

@coolreader18 coolreader18 commented Mar 3, 2026

Description of Changes

Followup to #3802; was causing issues in modules in private. Rust 2024 now requires unsafe() around certain attributes, but the settings macro was added after I first opened that PR, so I didn't wrap it. Additionally, settings wasn't tested in this repo, so it wasn't caught.

Expected complexity level and risk

1

Testing

  • Added use of #[spacetimedb::settings] in module-test

@coolreader18 coolreader18 enabled auto-merge March 3, 2026 16:31
@coolreader18 coolreader18 added this pull request to the merge queue Mar 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 3, 2026
@kim kim added this pull request to the merge queue Mar 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 3, 2026
@coolreader18 coolreader18 added this pull request to the merge queue Mar 3, 2026
Merged via the queue into master with commit 8cb2038 Mar 3, 2026
54 of 57 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.

2 participants