Skip to content

refactor: fix clippy warnings#11

Merged
Neclow merged 2 commits intosbhattlab:mainfrom
Neclow:clean
Apr 29, 2025
Merged

refactor: fix clippy warnings#11
Neclow merged 2 commits intosbhattlab:mainfrom
Neclow:clean

Conversation

@Neclow
Copy link
Collaborator

@Neclow Neclow commented Apr 29, 2025

No description provided.

@Neclow Neclow requested a review from Copilot April 29, 2025 14:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the code to address clippy warnings by modernizing syntax, removing redundant returns, and using slices where appropriate. Key changes include updating function signatures to use slice references, streamlining for loops and return statements, and standardizing type aliases across the codebase.

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
r-phylo2vec/src/rust/src/lib.rs Simplifies conversions and return expressions.
py-phylo2vec/src/lib.rs Eliminates redundant variable assignments in function returns.
phylo2vec/src/utils.rs Streamlines vector construction and loop iteration.
phylo2vec/src/tree_vec/{types.rs,ops/*,mod.rs} Modernizes slice usage, refactors for loops, and standardizes naming.
phylo2vec/benches/benchmarks/core.rs Updates benchmark calls with the latest API functions.
Comments suppressed due to low confidence (1)

phylo2vec/src/tree_vec/ops/mod.rs:62

  • Remove the debug print statement to avoid unintended output in production builds.
println!("{:?}", ancestry_add);

@Neclow Neclow merged commit 599d038 into sbhattlab:main Apr 29, 2025
7 checks passed
@Neclow Neclow deleted the clean branch April 29, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants