Skip to content

Commit 1f0a312

Browse files
committed
Fix deprecation warning for rustix::thread::Capability
Signed-off-by: John Eckersberg <[email protected]>
1 parent 7f10088 commit 1f0a312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/lib/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ pub(crate) fn require_root(is_container: bool) -> Result<()> {
740740
);
741741

742742
ensure!(
743-
rustix::thread::capability_is_in_bounding_set(rustix::thread::Capability::SystemAdmin)?,
743+
rustix::thread::capability_is_in_bounding_set(rustix::thread::CapabilitySet::SYS_ADMIN)?,
744744
if is_container {
745745
"The container must be executed with full privileges (e.g. --privileged flag)"
746746
} else {

0 commit comments

Comments
 (0)