Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed May 10, 2024
1 parent 528e543 commit 18c9bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bam/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ impl Record {

let mut sam_string = htslib::kstring_t {
s: sam_copy.as_ptr() as *mut c_char,
l: sam_copy.len() as u64,
m: sam_copy.len() as u64,
l: sam_copy.len(),

Check failure on line 155 in src/bam/record.rs

View workflow job for this annotation

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

mismatched types

Check failure on line 155 in src/bam/record.rs

View workflow job for this annotation

GitHub Actions / clippy

mismatched types

error[E0308]: mismatched types --> src/bam/record.rs:155:16 | 155 | l: sam_copy.len(), | ^^^^^^^^^^^^^^ expected `u64`, found `usize`
m: sam_copy.len(),

Check failure on line 156 in src/bam/record.rs

View workflow job for this annotation

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

mismatched types

Check failure on line 156 in src/bam/record.rs

View workflow job for this annotation

GitHub Actions / clippy

mismatched types

error[E0308]: mismatched types --> src/bam/record.rs:156:16 | 156 | m: sam_copy.len(), | ^^^^^^^^^^^^^^ expected `u64`, found `usize`
};

let succ = unsafe {
Expand Down

0 comments on commit 18c9bcc

Please sign in to comment.