Skip to content

more rigorous rustfmt linting#111

Merged
tgeoghegan merged 1 commit into
mainfrom
timg/normalize-comments
Jul 13, 2026
Merged

more rigorous rustfmt linting#111
tgeoghegan merged 1 commit into
mainfrom
timg/normalize-comments

Conversation

@tgeoghegan

@tgeoghegan tgeoghegan commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Harmonize the configuration of rustfmt with other Divvi Up Rust projects by adding a rustfmt.toml using nightly-only options.

  • import grouping
  • wrap comments at 100 columns
  • error out if code exceeds 100 columns

Also makes changes to appease the linter, as well as some manual changes to align with Rust RFC 1574 1.

In order to use unstable rustfmt features, we must now use the nightly cargo fmt in CI.

@tgeoghegan
tgeoghegan force-pushed the timg/normalize-comments branch from 6b77a19 to 0492a53 Compare July 13, 2026 17:53
@tgeoghegan
tgeoghegan marked this pull request as ready for review July 13, 2026 17:53
@tgeoghegan
tgeoghegan requested a review from a team as a code owner July 13, 2026 17:53
Comment thread src/ciphertext.rs Outdated
*/
/// Encapsulated key and ciphertext.
///
/// Obtained from [`crate::base_mode_open::base_mode_open`].

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is returned by seal, not open.

Suggested change
/// Obtained from [`crate::base_mode_open::base_mode_open`].
/// Obtained from [`crate::base_mode_seal::base_mode_seal`].

Comment thread src/config.rs Outdated
Comment on lines +78 to +81
/// The id mappings are defined in in [RFC9180§7.2][1] and [draft-ietf-hpke-pq][2].
///
/// [1]: https://www.rfc-editor.org/rfc/rfc9180.html#section-7.2
/// [2]: https://www.ietf.org/archive/id/draft-ietf-hpke-pq-05.html#table-1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It might be better to reference https://www.iana.org/assignments/hpke/hpke.xhtml here.

Harmonize the configuration of `rustfmt` with other Divvi Up Rust projects by
adding a `rustfmt.toml` using nightly-only options.

- import grouping
- wrap comments at 100 columns
- error out if code exceeds 100 columns

Also makes changes to appease the linter, as well as some manual changes to
align with Rust RFC 1574 [1].

In order to use unstable `rustfmt` features, we must now use the nightly `cargo
fmt` in CI.

[1]: https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html
@tgeoghegan
tgeoghegan force-pushed the timg/normalize-comments branch from 0492a53 to aec32f9 Compare July 13, 2026 18:13
@tgeoghegan
tgeoghegan enabled auto-merge (squash) July 13, 2026 18:13
@tgeoghegan
tgeoghegan merged commit ecb60e7 into main Jul 13, 2026
7 checks passed
@tgeoghegan
tgeoghegan deleted the timg/normalize-comments branch July 13, 2026 18:14
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