Skip to content

Commit

Permalink
bam/lazy/record: Qualify types
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Dec 14, 2023
1 parent 3e7a4a5 commit b72f33b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions noodles-bam/src/lazy/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ mod sequence;

use std::{fmt, io, mem};

use noodles_core::Position;
use noodles_core as core;
use noodles_sam as sam;
use sam::record::MappingQuality;

use self::bounds::Bounds;
pub use self::{
Expand Down Expand Up @@ -55,7 +54,7 @@ impl Record {
/// assert!(record.alignment_start()?.is_none());
/// # Ok::<_, std::io::Error>(())
/// ```
pub fn alignment_start(&self) -> io::Result<Option<Position>> {
pub fn alignment_start(&self) -> io::Result<Option<core::Position>> {
use crate::record::codec::decoder::get_position;
let mut src = &self.buf[bounds::ALIGNMENT_START_RANGE];
get_position(&mut src).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))
Expand All @@ -72,7 +71,7 @@ impl Record {
/// ```
pub fn mapping_quality(&self) -> Option<sam::record::MappingQuality> {
let n = self.buf[bounds::MAPPING_QUALITY_INDEX];
MappingQuality::new(n)
sam::record::MappingQuality::new(n)
}

/// Returns the flags.
Expand Down Expand Up @@ -118,7 +117,7 @@ impl Record {
/// assert!(record.mate_alignment_start()?.is_none());
/// # Ok::<_, std::io::Error>(())
/// ```
pub fn mate_alignment_start(&self) -> io::Result<Option<Position>> {
pub fn mate_alignment_start(&self) -> io::Result<Option<core::Position>> {
use crate::record::codec::decoder::get_position;
let mut src = &self.buf[bounds::MATE_ALIGNMENT_START_RANGE];
get_position(&mut src).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))
Expand Down

0 comments on commit b72f33b

Please sign in to comment.