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

client: impl IntoUrl for String for convenience #509

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

joshtriplett
Copy link
Collaborator

  • client: impl IntoUrl for String for convenience
  • client: Add tests for using String with IntoUrl

This makes it easy to generate the base by using
`.with_base(format!(...))`.

`.with_base(&format!(...))` doesn't suffice in that case because Rust
can't infer `&str` for the generic argument, so this would otherwise
require `.with_base(format!(...).as_str())`.
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (7316bf5) 46.15% compared to head (9f24f92) 46.15%.

Files Patch % Lines
client/src/into_url.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #509   +/-   ##
=======================================
  Coverage   46.15%   46.15%           
=======================================
  Files         179      179           
  Lines        6977     6979    +2     
=======================================
+ Hits         3220     3221    +1     
- Misses       3757     3758    +1     

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

@jbr
Copy link
Contributor

jbr commented Jan 2, 2024

Thanks!

@jbr jbr merged commit 75d8c6e into trillium-rs:main Jan 2, 2024
17 checks passed
@joshtriplett joshtriplett deleted the string-intourl branch January 2, 2024 20:23
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