Skip to content

Comments

Make DisplaySafeUrlRef Copy and other minor PR follow-ups#13683

Merged
jtfmumm merged 1 commit intomainfrom
jtfm/display-safe-url-followup
May 28, 2025
Merged

Make DisplaySafeUrlRef Copy and other minor PR follow-ups#13683
jtfmumm merged 1 commit intomainfrom
jtfm/display-safe-url-followup

Conversation

@jtfmumm
Copy link
Contributor

@jtfmumm jtfmumm commented May 27, 2025

This PR implements a few review follow-ups from #13560. In particular, it

  • Makes DisplaySafeUrlRef implement Copy so that it can be passed by value.
  • Updates to_string_with_credentials methods with displayable_with_credentials, returning an impl Display instead of String for greater flexibility.
  • Updates the DisplaySafeUrl and DisplaySafeUrlRef Debug implementations to match the underlying Url Debug implementation (with the exception that credentials are masked).
  • Replaces an unnecessary DisplaySafeUrl::from(Url::from_file_path with DisplaySafeUrl::from_file_path

@jtfmumm jtfmumm force-pushed the jtfm/display-safe-url-followup branch from e099a02 to 3164170 Compare May 27, 2025 14:56
@konstin konstin requested a review from charliermarsh May 27, 2025 15:02
@jtfmumm jtfmumm added the enhancement New feature or improvement to existing functionality label May 27, 2025
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

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

Great, thank you!

@jtfmumm jtfmumm merged commit 410dc33 into main May 28, 2025
86 checks passed
@jtfmumm jtfmumm deleted the jtfm/display-safe-url-followup branch May 28, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants