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

remove whitespace from Display impl of VersionReq #196

Merged
merged 2 commits into from Mar 15, 2020

Conversation

dr-bonez
Copy link
Contributor

I can't find precedent for putting spaces in version requirements anywhere else on the web, so this seems like a wild thing to do by default. Both node-semver and https://docs.racket-lang.org/semver/index.html have their version requirements shown without spaces.

dr-bonez and others added 2 commits December 27, 2019 00:09
I can't find precedent for putting spaces in version requirements anywhere else on the web, so this seems like a wild thing to do by default. Both node-semver and https://docs.racket-lang.org/semver/index.html have their version requirements shown without spaces.
@dr-bonez
Copy link
Contributor Author

will be broken until #197

Copy link
Contributor

@steveklabnik steveklabnik left a comment

Choose a reason for hiding this comment

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

Thanks!

@steveklabnik steveklabnik merged commit afa5fc8 into dtolnay:master Mar 15, 2020
hone added a commit to hone/semver that referenced this pull request Jul 22, 2020
hone added a commit to hone/semver that referenced this pull request Jul 22, 2020
Fabian-Gruenbichler added a commit to Fabian-Gruenbichler/semver that referenced this pull request Apr 30, 2021
before: `cargo test --features ci`

  ...

  running 6 tests
  test deserialize_identifier ... ok
  test serialize_identifier ... ok
  test deserialize_version ... ok
  test serialize_version ... ok
  test serialize_versionreq ... FAILED
  test deserialize_versionreq ... ok

  failures:

  ---- serialize_versionreq stdout ----
  thread 'serialize_versionreq' panicked at 'assertion failed: `(left == right)`
    left: `"\"=1.0.0\""`,
   right: `"\"= 1.0.0\""`', tests/serde.rs:84:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  failures:
      serialize_versionreq

  test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Fixes: 5e87530 fix tests and formatting to comply with dtolnay#196

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
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.

None yet

2 participants