Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a clippy warning #188

Merged
merged 1 commit into from
Oct 21, 2022
Merged

Fix a clippy warning #188

merged 1 commit into from
Oct 21, 2022

Conversation

sylvestre
Copy link
Contributor

this expression borrows a value the compiler would automatically borrow

`this expression borrows a value the compiler would automatically borrow`
@codecov
Copy link

codecov bot commented Oct 21, 2022

Codecov Report

Merging #188 (b958796) into main (e785397) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #188   +/-   ##
=======================================
  Coverage   50.05%   50.05%           
=======================================
  Files          30       30           
  Lines        4911     4911           
  Branches     1314     1318    +4     
=======================================
  Hits         2458     2458           
  Misses       1806     1806           
  Partials      647      647           
Impacted Files Coverage Δ
src/find/matchers/printf.rs 67.70% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sylvestre sylvestre merged commit 0b02baf into main Oct 21, 2022
@sylvestre sylvestre deleted the sylvestre-patch-1 branch October 21, 2022 07:15
@@ -206,7 +206,7 @@ impl FormatStringParser<'_> {
if digits > 0 {
// safe to unwrap: we already know all the digits are valid due to
// the above checks.
Some((&start[0..digits]).parse().unwrap())
Some((start[0..digits]).parse().unwrap())
Copy link
Contributor

Choose a reason for hiding this comment

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

The parentheses around (start[0..digits]) are also redundant

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