Skip to content

Conversation

@tamird
Copy link

@tamird tamird commented Mar 15, 2025

  • Remove ExtractJsonMediaType::content_json
  • Remove useless condition
  • Reduce duplication
  • Use workspace resolver = "2"
  • dependabot: batch updates, reduce cadence

@jessfraz could you have a look please? Best reviewed commit-by-commit.

tamird added 5 commits March 15, 2025 18:56
Usage was removed in commit ddb56a8 ("fixes").
This check became obsolete in commit a8a30d5 ("further working
towards parsing github spec") with the removal of the
`self.content.len() != 1` check.
This avoids a compilation warning:

> warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
> note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
> note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
> note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
>     Blocking waiting for file lock on build directory
@augustuswm
Copy link
Contributor

Thanks for putting this together. I'll have a look at this week.

@tamird
Copy link
Author

tamird commented Mar 24, 2025

@augustuswm gentle ping.

@augustuswm
Copy link
Contributor

Apologies here! Time got away from me. I'm traveling and won't get to this until next week. But please do ping me again if I don't.

@tamird
Copy link
Author

tamird commented Apr 7, 2025

@augustuswm ping.

let (body_param, body_func) = if let Some(b) = &o.request_body {
if let Ok(b) = b.item() {
if b.is_binary()? {
if crate::is_binary(b)? {
Copy link
Contributor

@augustuswm augustuswm Apr 10, 2025

Choose a reason for hiding this comment

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

What is the measurable value to moving this to a free function?

Copy link
Author

Choose a reason for hiding this comment

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

It's explained in the commit message, and it's very clear if you look at the commit by itself: a78ba1a?w=1

it removes one copy of a function.

Copy link
Contributor

Choose a reason for hiding this comment

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

I understand the change, I was more asking if this has a measurable impact on compilation or runtime performance? I was not able to see it initially on my machine, but that is only one data point.

Copy link
Author

Choose a reason for hiding this comment

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

I didn't perform science. I saw duplicated code and removed it.

updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/generator" # Location of package manifests
- package-ecosystem: "cargo"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to move these changes to a separate PR to consider them independently.

Copy link
Author

Choose a reason for hiding this comment

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

They're in a separate commit. I can send a separate PR.

@tamird
Copy link
Author

tamird commented Apr 20, 2025

@augustuswm ping, another 10 days gone by. FWIW I no longer use this library (its incredible long build times finally broke me), so I'm happy to close this if you'd rather.

@tamird tamird closed this by deleting the head repository Jun 15, 2025
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