Skip to content

Commit 9947327

Browse files
authored
feat: fix all remaining Sendable warnings (#47)
1 parent 4131d98 commit 9947327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Casbin/Util/Util.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public struct Util {
8181
return res
8282
}
8383
}
84-
public static func loadPolicyLine(line:String,m:Model) {
84+
@Sendable public static func loadPolicyLine(line:String,m:Model) {
8585
if line.isEmpty || line.starts(with: "#") {
8686
return
8787
}
@@ -96,7 +96,7 @@ public struct Util {
9696
}
9797
}
9898
}
99-
public static func loadFilteredPolicyLine(line:String,m:Model,f:Filter) -> Bool {
99+
@Sendable public static func loadFilteredPolicyLine(line:String,m:Model,f:Filter) -> Bool {
100100
if line.isEmpty || line.starts(with: "#") {
101101
return false
102102
}

0 commit comments

Comments
 (0)