Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[easy, cleanup] Simplify some pattern-matches #16402

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

huitseeker
Copy link
Contributor

When those match an exact combinator on Option / Result.

Tool-aided by comby-rust.

@mvines mvines added CI Pull Request is ready to enter CI and removed CI Pull Request is ready to enter CI labels Apr 6, 2021
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Apr 6, 2021
core/src/duplicate_shred.rs Outdated Show resolved Hide resolved
@mvines
Copy link
Contributor

mvines commented Apr 6, 2021

Cool tool @huitseeker!

@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Apr 7, 2021
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Apr 7, 2021
When those match an exact combinator on Option / Result.

Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).
@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

Merging #16402 (1a98a97) into master (388ce12) will increase coverage by 0.0%.
The diff coverage is 47.9%.

@@           Coverage Diff           @@
##           master   #16402   +/-   ##
=======================================
  Coverage    80.0%    80.0%           
=======================================
  Files         413      413           
  Lines      110592   110560   -32     
=======================================
- Hits        88559    88543   -16     
+ Misses      22033    22017   -16     

@CriesofCarrots
Copy link
Contributor

Thanks for the tidy up and sharing your tool, @huitseeker !
No change in functionality, so adding v1.5/v1.6 backports to prevent future backport merge conflicts

@CriesofCarrots CriesofCarrots merged commit b08cff9 into solana-labs:master Apr 8, 2021
mergify bot pushed a commit that referenced this pull request Apr 8, 2021
When those match an exact combinator on Option / Result.

Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).

(cherry picked from commit b08cff9)

# Conflicts:
#	accounts-cluster-bench/src/main.rs
#	core/src/rpc.rs
#	runtime/src/accounts_hash.rs
#	runtime/src/message_processor.rs
mergify bot pushed a commit that referenced this pull request Apr 8, 2021
When those match an exact combinator on Option / Result.

Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).

(cherry picked from commit b08cff9)
mergify bot added a commit that referenced this pull request Apr 8, 2021
* Simplify some pattern-matches (#16402)

When those match an exact combinator on Option / Result.

Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).

(cherry picked from commit b08cff9)

# Conflicts:
#	accounts-cluster-bench/src/main.rs
#	core/src/rpc.rs
#	runtime/src/accounts_hash.rs
#	runtime/src/message_processor.rs

* Fix conflicts

Co-authored-by: François Garillot <4142+huitseeker@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
mergify bot added a commit that referenced this pull request Apr 8, 2021
When those match an exact combinator on Option / Result.

Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).

(cherry picked from commit b08cff9)

Co-authored-by: François Garillot <4142+huitseeker@users.noreply.github.com>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants