Skip to content

Commit

Permalink
Fix clippy 1.83.0 warnings (#102)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Closes #

## Introduced changes

<!-- A brief description of the changes -->

- As in title

## Checklist

<!-- Make sure all of these are complete -->

- [ ] Linked relevant issue
- [ ] Updated relevant documentation
- [ ] Added relevant tests
- [x] Performed self-review of the code
- [ ] Added changes to `CHANGELOG.md`
  • Loading branch information
ksew1 authored Nov 29, 2024
1 parent c7595b6 commit 237aa00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/cairo-coverage/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() -> Result<()> {
let coverage_data = LoadedDataMap::load(trace_files)?
.iter()
.map(|(source_sierra_path, loaded_data)| {
let project_path = &get_project_path(source_sierra_path, project_path)?;
let project_path = &get_project_path(source_sierra_path, project_path.as_ref())?;
let filter = StatementCategoryFilter::new(project_path, include, loaded_data);
let input_data = InputData::new(loaded_data, &filter)?;
Ok(create_files_coverage_data_with_hits(&input_data))
Expand All @@ -57,7 +57,7 @@ fn main() -> Result<()> {

fn get_project_path(
source_sierra_path: &Utf8PathBuf,
project_path: &Option<Utf8PathBuf>,
project_path: Option<&Utf8PathBuf>,
) -> Result<Utf8PathBuf> {
if let Some(project_path) = project_path {
Ok(project_path.clone())
Expand Down

0 comments on commit 237aa00

Please sign in to comment.