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

Provide single quote separators around missing Cargo.toml fields to improve readability #296

Merged
merged 1 commit into from
Sep 11, 2018

Conversation

twilco
Copy link
Contributor

@twilco twilco commented Sep 11, 2018

Before these changes, the CLI output would read:

[4/8] 📂 Creating a pkg directory...
[5/8] 📝 Writing a package.json...
⚠️ [WARN]: Field description is missing from Cargo.toml. It is not necessary, but recommended
⚠️ [WARN]: Field repository is missing from Cargo.toml. It is not necessary, but recommended
⚠️ [WARN]: Field license is missing from Cargo.toml. It is not necessary, but recommended

Which confused me at first glance, as I read literally that a field description was missing. After this change, the output would be:

[4/8] 📂 Creating a pkg directory...
[5/8] 📝 Writing a package.json...
⚠️ [WARN]: Field 'description' is missing from Cargo.toml. It is not necessary, but recommended
⚠️ [WARN]: Field 'repository' is missing from Cargo.toml. It is not necessary, but recommended
⚠️ [WARN]: Field 'license' is missing from Cargo.toml. It is not necessary, but recommended

Which I feel reads a bit better :)

@twilco twilco changed the title Provide single quote separators around missing Cargo.toml field to improve readability Provide single quote separators around missing Cargo.toml fields to improve readability Sep 11, 2018
Copy link
Member

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

oh this is a great change! thank you @twilco !

@ashleygwilliams ashleygwilliams added this to the 0.5.0 milestone Sep 11, 2018
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Thanks :)

@fitzgen
Copy link
Member

fitzgen commented Sep 11, 2018

Heh, @ashleygwilliams beat me to it :-p

@ashleygwilliams ashleygwilliams merged commit 947b33f into rustwasm:master Sep 11, 2018
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