Skip to content

Conversation

@lu-zero
Copy link
Contributor

@lu-zero lu-zero commented Oct 15, 2025

No description provided.

@codecov
Copy link

codecov bot commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.25%. Comparing base (5d91ad6) to head (0bb35b8).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
- Coverage   99.27%   99.25%   -0.03%     
==========================================
  Files           6        6              
  Lines        3887     3870      -17     
  Branches     3887     3870      -17     
==========================================
- Hits         3859     3841      -18     
- Misses         20       21       +1     
  Partials        8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lu-zero
Copy link
Contributor Author

lu-zero commented Oct 15, 2025

You may look at the tests to see the usage, if you like it I can finish converting the tests.
Things that might be good to have:

  • use a Cow<> in QueryParams so we can call .params() with also &[(...)] and &[String], this would sidetrack the fact params now are consumed by the builder and the builders cannot be overwritten (yet).
  • rename FormatOptions to Formatter so we have calls like
Formatter::config().params(params).inline(true)... .format()

@shssoichiro
Copy link
Owner

Do any of the examples in the readme need to be updated as well?

@lu-zero
Copy link
Contributor Author

lu-zero commented Oct 19, 2025

All of them, thank you for reminding me :) We should discuss a little bit few details btw

///
/// Default: None
pub ignore_case_convert: Option<Vec<&'a str>>,
ignore_case_convert: Option<Vec<&'a str>>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could be later changed to accept AsRef<[&str]> so one can pass to the builder also &[&str],[&str; N] and so on.

Named(Vec<(String, String)>),
Indexed(Vec<String>),
pub enum QueryParams<'a> {
Named(Cow<'a, [(String, String)]>),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could be made simpler by taking only by reference, but I wanted your opinion.

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, I think having either either all owned or all references would make usage simpler, and all references is likely the better option due to performance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I did now, it is almost transparent to the user.

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