Skip to content

Commit

Permalink
Fixed clippy lints (#111)
Browse files Browse the repository at this point in the history
Cargo nightly added new lints
  • Loading branch information
arduano authored Dec 28, 2024
1 parent 5757ee5 commit 35492f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fn main() {
let major = pkg_version_major!();
let minor = pkg_version_minor!();
let patch = pkg_version_patch!();
let ver: u32 = patch | minor << 8 | major << 16;
let ver: u32 = patch | (minor << 8) | (major << 16);

let crate_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();

Expand Down
2 changes: 1 addition & 1 deletion clib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use consts::*;
use pkg_version::*;

const XSYNTH_VERSION: u32 =
pkg_version_patch!() | pkg_version_minor!() << 8 | pkg_version_major!() << 16;
pkg_version_patch!() | (pkg_version_minor!() << 8) | (pkg_version_major!() << 16);

/// Returns the version of XSynth
///
Expand Down

0 comments on commit 35492f3

Please sign in to comment.