Skip to content

Commit f145269

Browse files
authored
Badge Fix for Github Actions (#7)
* Fix build badge, due to breaking change: badges/shields#8671 Co-authored-by: landhb <[email protected]>
1 parent eb78222 commit f145269

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "linux-keyutils"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
authors = ["landhb <[email protected]>"]
66
description = """
@@ -27,4 +27,4 @@ bitflags = "1.3"
2727

2828
[dev-dependencies]
2929
zeroize = "1.5.7"
30-
clap = {version = "3.2.22", default-features = false, features = ["std", "derive"]}
30+
clap = {version = "3.2.22", default-features = false, features = ["std", "derive"]}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ additional terms or conditions.
4444
[docs-lib]: https://docs.rs/linux-keyutils
4545
[codecov]: https://img.shields.io/codecov/c/github/landhb/linux-keyutils?style=flat-square
4646
[codecov-url]: https://codecov.io/gh/landhb/linux-keyutils
47-
[build]: https://img.shields.io/github/workflow/status/landhb/linux-keyutils/Checks?master?style=flat-square
47+
[build]: https://img.shields.io/github/actions/workflow/status/landhb/linux-keyutils/checks.yml?branch=main&style=flat-square
4848
[build-url]: https://github.com/landhb/linux-keyutils/actions?query=workflow%3Achecks

src/keyring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl KeyRing {
2828
let id: KeySerialId = ffi::keyctl!(
2929
KeyCtlOperation::GetKeyRingId,
3030
id as libc::c_ulong,
31-
if create { 1 } else { 0 }
31+
u64::from(create)
3232
)?
3333
.try_into()
3434
.or(Err(KeyError::InvalidIdentifier))?;

0 commit comments

Comments
 (0)