Skip to content

Simplify PyFuncArgs get_kwarg/get_optional_kwarg with cloned() #994

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

Merged
merged 1 commit into from
May 22, 2019

Conversation

mkurnikov
Copy link
Contributor

@mkurnikov mkurnikov commented May 22, 2019

Addressing review comment from here #993

return Some(kwarg_value.clone());
}
None
self.kwargs.get(key).cloned()
Copy link
Contributor

Choose a reason for hiding this comment

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

Clean code for the win!

@codecov-io
Copy link

Codecov Report

Merging #994 into master will decrease coverage by <.01%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #994      +/-   ##
==========================================
- Coverage   64.85%   64.85%   -0.01%     
==========================================
  Files          93       93              
  Lines       16668    16666       -2     
  Branches     3776     3774       -2     
==========================================
- Hits        10810    10808       -2     
  Misses       3351     3351              
  Partials     2507     2507
Impacted Files Coverage Δ
vm/src/function.rs 58.13% <25%> (-0.39%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59fa46d...737ec52. Read the comment docs.

@windelbouwman windelbouwman merged commit 61e752e into RustPython:master May 22, 2019
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.

3 participants