mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Relaxed clippy fixes/nits (#2661)
This PR contains just a few clippy fixes and nits, which are, however, relaxed by workspace clippy settings here: https://github.com/paritytech/polkadot-sdk/blob/master/Cargo.toml#L483-L506 --------- Co-authored-by: Dmitry Sinyavin <dmitry.sinyavin@parity.io> Co-authored-by: ordian <write@reusable.software> Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -25,7 +25,7 @@ pub fn generate_cargo_keys() {
|
||||
// We deliberately set the length here to `11` to ensure that
|
||||
// the emitted hash is always of the same length; otherwise
|
||||
// it can (and will!) vary between different build environments.
|
||||
match Command::new("git").args(&["rev-parse", "--short=11", "HEAD"]).output() {
|
||||
match Command::new("git").args(["rev-parse", "--short=11", "HEAD"]).output() {
|
||||
Ok(o) if o.status.success() => {
|
||||
let sha = String::from_utf8_lossy(&o.stdout).trim().to_owned();
|
||||
Cow::from(sha)
|
||||
|
||||
Reference in New Issue
Block a user