Skip to content

Commit

Permalink
Update dependencies to new semver versions (#11)
Browse files Browse the repository at this point in the history
* Update dependencies to new semver versions
* Fix clippy lint.
* Update repo owner for cross.
* Remove CI/CD targets without rust-std support.

---------

Authored-by: https://github.com/VorpalBlade
Co-authored-by: landhb <[email protected]>
  • Loading branch information
VorpalBlade and landhb authored Jan 15, 2024
1 parent 4406bdd commit 0ea08cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: XAMPPRocky/get-github-release@v1
id: cross
with:
owner: rust-embedded
owner: cross-rs
repo: cross
matches: ${{ matrix.platform }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -91,8 +91,6 @@ jobs:
matrix:
channel: [stable]
target:
- mips64-unknown-linux-muslabi64
- mips-unknown-linux-musl
- aarch64-unknown-linux-musl
- arm-unknown-linux-musleabihf
- i686-unknown-linux-musl
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ license = "Apache-2.0 OR MIT"

[features]
default = []
std = []
std = ["bitflags/std"]

[[example]]
name = "keyctl"
required-features = ["std"]

[dependencies]
libc = {version = "0.2.132", default-features = false}
bitflags = "1.3"
bitflags = {version = "2.4", default-features = false}

[dev-dependencies]
zeroize = "1.5.7"
clap = {version = "3.2.22", default-features = false, features = ["std", "derive"]}
clap = {version = "4.4.11", default-features = false, features = ["std", "derive"]}
2 changes: 1 addition & 1 deletion src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct Key(KeySerialId);

impl fmt::Display for Key {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let info = self.metadata().map_err(|_| fmt::Error::default())?;
let info = self.metadata().map_err(|_| fmt::Error)?;
write!(f, "Key({:?})", info)
}
}
Expand Down

0 comments on commit 0ea08cd

Please sign in to comment.