Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@simonljs
Copy link
Contributor

@simonljs simonljs commented Aug 3, 2018

Moved static method full_version_from_strs out of the Configuration struct to be a free function within the same module. This has simplified calls to the function by avoiding the complicated type of Configuration.

The platform function has also made the same journey for the same reasons. Additionally it is called by full_version_from_strs so needs to be easily accessible from the new location.

Closes #468

@simonljs simonljs added the A0-please_review Pull request needs code review. label Aug 3, 2018
@simonljs simonljs requested a review from rphmeier August 3, 2018 16:12
mod components;
mod error;
mod config;
pub mod config;
Copy link
Contributor

Choose a reason for hiding this comment

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

could you group the public module declarations together?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

New change committed to group the public module declarations together.

pub fn platform() -> String {
let env = Target::env();
let env_dash = if env.is_empty() { "" } else { "-" };
format!("{}-{}{}{}", Target::arch(), Target::os(), env_dash, env)
Copy link
Contributor

Choose a reason for hiding this comment

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

are these tabs or some kind of weird half-tab? github is rendering them strangely. also in the below function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's just my attempts to get these changes into GitHub - had a few problems with this today! I'll try to correct them..

Copy link
Contributor Author

@simonljs simonljs Aug 3, 2018

Choose a reason for hiding this comment

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

Looking around, these strange tab sizes seem common in many files displayed on GitHub. I think it is perhaps just more noticeable in this one with the free functions.
Anyway, I tried pulling this file from Github back to my local machine and the tabs were all normal.

@gavofyork gavofyork added A8-looksgood and removed A0-please_review Pull request needs code review. labels Aug 4, 2018
@gavofyork gavofyork merged commit 8f8db3f into master Aug 4, 2018
@gavofyork gavofyork deleted the sl-version-commit-hash-style-improvement branch August 4, 2018 05:39
dvdplm added a commit that referenced this pull request Aug 5, 2018
* master:
  --version commit hash - style improvement (#496)
  Send initial values with subscription. (#493)
  Improve docker image size with a 2 stages image (#463)
arkpar pushed a commit that referenced this pull request Aug 10, 2018
* Update lib.rs

* Update lib.rs

* Update config.rs

* Update lib.rs

* Update lib.rs

* tab correction
arkpar added a commit that referenced this pull request Aug 10, 2018
* Update lib.rs

* Update lib.rs

* Update config.rs

* Update lib.rs

* Update lib.rs

* tab correction
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
* update to latest substrate polkadot-master

* Bump to 0.6.3
liuchengxu added a commit to autonomys/substrate that referenced this pull request Jun 3, 2022
…ve-to-best-execution-chain-number-refactor

Minor refactoring for better readability
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
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