Repository navigation
Follow API guidelines for public types - #12283
Merged
Merged
Conversation
Follow the Rust API guidelines on naming of conversions. As a unit-less value (`i64`) and `Span` are added to create the `Value` call it `build_value` Also take `Unit` by-val as it implements `Copy` (calling convention will probably limit any benefit of taking a u8 (current repr for the enum) instead of a usize)
Make the Rust API guideline on `is_*` checks happy. - https://rust-lang.github.io/rust-clippy/master/index.html#/wrong_self_convention
Also annotate the completing property of the current impl cc @WindSoilder
Follow good API guidelines for consistency: - https://rust-lang.github.io/rust-clippy/master/index.html#/wrong_self_convention - https://rust-lang.github.io/api-guidelines/naming.html?highlight=is_#ad-hoc-conversions-follow-as_-to_-into_-conventions-c-conv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follow the API guideline naming conventions also for our externally exposed types
(See
clippy::wrong_self_conventionwithavoid-breaking-exported-api = false)Also be a good citizen around doccomments
Unit::to_valuetoUnit::build_valuePipelineData::is_external_failedtocheck_external_failedcheck_external_failedValue::into_confignaming toparse_as_configValue::parse_as_configPlugin-Author-Facing Changes
See renames above