Skip to content

Conversation

@zamderax
Copy link
Contributor

Summary

  • Add @Sendable attribute to loadPolicyLine and loadFilteredPolicyLine static functions in Util.swift
  • Resolves all remaining Swift 6 concurrency warnings related to passing non-Sendable functions to @Sendable handler closures in FileAdapter

Changes

  • Util.loadPolicyLine(line:m:) now marked as @Sendable
  • Util.loadFilteredPolicyLine(line:m:f:) now marked as @Sendable

Test plan

  • Build completes successfully with no warnings
  • No Sendable-related warnings remain in the codebase
  • All existing tests pass

🤖 Generated with Claude Code

Add @sendable attribute to loadPolicyLine and loadFilteredPolicyLine
static functions in Util to resolve Swift 6 concurrency warnings when
passing these functions to FileAdapter handlers.

Fixes all remaining Sendable warnings in the codebase.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@hsluoyz hsluoyz changed the title chore: fix all remaining Sendable warnings feat: fix all remaining Sendable warnings Oct 15, 2025
@hsluoyz hsluoyz merged commit 9947327 into casbin:master Oct 15, 2025
4 checks passed
@hsluoyz
Copy link
Member

hsluoyz commented Oct 15, 2025

🎉 This PR is included in version 1.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants