Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed May 10, 2024
1 parent f9807c0 commit 1c89f12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bio-types = ">=0.9"
byteorder = "1.3"
custom_derive = "0.1"
derive-new = "0.5"
hts-sys = {version = "2.1.3", default-features = false}
hts-sys = {version = "2.1.3", default-features = false, features = ["bindgen"]}
ieee754 = "0.2"
lazy_static = "1.4"
libc = "0.2"
Expand Down
4 changes: 2 additions & 2 deletions src/bam/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1392,9 +1392,9 @@ impl HeaderView {
header_string.len(),
);

let rec = htslib::sam_hdr_parse((l_text + 1) as u64, text as *const c_char);
let rec = htslib::sam_hdr_parse((l_text + 1), text as *const c_char);

Check warning on line 1395 in src/bam/mod.rs

View workflow job for this annotation

GitHub Actions / Testing-Features (no-default-features)

unnecessary parentheses around function argument

Check warning on line 1395 in src/bam/mod.rs

View workflow job for this annotation

GitHub Actions / clippy

unnecessary parentheses around function argument

warning: unnecessary parentheses around function argument --> src/bam/mod.rs:1395:45 | 1395 | let rec = htslib::sam_hdr_parse((l_text + 1), text as *const c_char); | ^ ^ | = note: `#[warn(unused_parens)]` on by default help: remove these parentheses | 1395 - let rec = htslib::sam_hdr_parse((l_text + 1), text as *const c_char); 1395 + let rec = htslib::sam_hdr_parse(l_text + 1, text as *const c_char); |
(*rec).text = text as *mut c_char;
(*rec).l_text = l_text as u64;
(*rec).l_text = l_text;
rec
};

Expand Down

0 comments on commit 1c89f12

Please sign in to comment.