Skip to content

Commit

Permalink
Make pathbuf to be a bit easier
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed May 15, 2024
1 parent b0e43ba commit 744039c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coverage/coverage_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::convert::TryInto;
use std::error::Error;
use std::fmt;
use std::fs;
use std::path::Path;
use std::path::{Path, PathBuf};
use tracing::{debug, error, trace, warn};

/// Stores the instrumentation profile and information from the coverage mapping sections in the
Expand Down Expand Up @@ -150,7 +150,7 @@ impl<'a> CoverageMapping<'a> {
result
}

pub fn generate_subreport(&self, covered_files: Option<HashSet<&Path>>) -> CoverageReport {
pub fn generate_subreport(&self, covered_files: Option<HashSet<PathBuf>>) -> CoverageReport {
let mut report = CoverageReport::default();
//let base_region_ids = info.get_simple_counters(self.profile);
for info in &self.mapping_info {
Expand Down

0 comments on commit 744039c

Please sign in to comment.