Make SePolicy have Send
It's safe to send between threads, and I want to do so in ostree-rs-ext to send to a tokio worker thread.
This commit is contained in:
1 parent
7b47de7a14
commit
e33767cc2a
2 files changed
+3
No files matched your search
@@ -192,6 +192,7 @@ status = "generate"
|
||||
[[object]]
|
||||
name = "OSTree.SePolicy"
|
||||
status = "generate"
|
||||
concurrency = "send"
|
||||
[[object.function]]
|
||||
# [IGNORE] has an unused raw pointer parameter
|
||||
name = "fscreatecon_cleanup"
|
||||
|
||||
Generated
+2
@@ -106,6 +106,8 @@ impl SePolicy {
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for SePolicy {}
|
||||
|
||||
impl fmt::Display for SePolicy {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.write_str("SePolicy")
|
||||
|
||||
Reference in new issue
Block a user