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

Fmt, Clippy, CI to match other georust proj #9

Merged
merged 1 commit into from
May 18, 2022
Merged

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented May 18, 2022

Please rename the primary branch to main for consistency.

Similar to other georust projects, make CI:

  • go through additional fmt and clippy validation
  • run on pull requests, but ignore non-standard branches (it is usually easier to submit PRs from personal forks, but some maintainers may do it from the primary repo)
  • run fmt and clippy
  • add TileJSONBuilder::default()
  • ignore intellij files

Minor cleanup:

  • use .to_string() everywhere for consistency
  • use Self when possible
  • remove serde_json dependency
  • use 2021 edition

Also, get rid of the custom cargo-all-features as it is not really needed, so using the KISS principle :)

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

@nyurik nyurik force-pushed the lint branch 2 times, most recently from 7ef1d50 to 0749f84 Compare May 18, 2022 02:39
@nyurik nyurik force-pushed the lint branch 4 times, most recently from 05a54f1 to 35d334d Compare May 18, 2022 04:39
Please rename the primary branch to `main` for consistency.

Similar to other georust projects, make CI:
* go through additional fmt and clippy validation
* run on pull requests, but ignore non-standard branches (it is usually easier to submit PRs from personal forks, but some maintainers may do it from the primary repo)
* run fmt and clippy
* add `TileJSONBuilder::default()`
* ignore intellij files

Minor cleanup:
* use `.to_string()` everywhere for consistency
* use Self when possible
* remove `serde_json` dependency
* use 2021 edition

Also, get rid of the custom `cargo-all-features` as it is not really needed, so using the KISS principle :)
@nyurik
Copy link
Member Author

nyurik commented May 18, 2022

Note that cargo fmt caused some changes to indentation. Use "hide whitespace" when diffing:
image

Copy link
Collaborator

@stepankuzmin stepankuzmin left a comment

Choose a reason for hiding this comment

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

Hey @nyurik 👋

Thanks for the PR, it looks good to me. Unfortunately, I don't have the permission to rename the default branch to main

@nyurik nyurik merged commit f6c0ff9 into georust:master May 18, 2022
@nyurik nyurik deleted the lint branch May 18, 2022 12:16
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.

2 participants