Skip to content

Replace String clones with references in CLI RPC methods#977

Merged
spacebear21 merged 1 commit into
payjoin:masterfrom
bc1cindy:optimize/cli-clone-reduction-#402
Aug 21, 2025
Merged

Replace String clones with references in CLI RPC methods#977
spacebear21 merged 1 commit into
payjoin:masterfrom
bc1cindy:optimize/cli-clone-reduction-#402

Conversation

@bc1cindy

Copy link
Copy Markdown
Contributor

Part of #402

  • Change get_base_url() return type from String to &str
  • Use direct references instead of cloning self.url
  • Remove unnecessary Arc wrapper in PSBT v1 fallback processing

Pull Request Checklist

Please confirm the following before requesting review:

  • A human has reviewed every single line of this code before opening the PR (no auto-generated, unreviewed LLM/robot submissions).
  • I have read CONTRIBUTING.md and rebased my branch to produce hygienic commits.

- Change get_base_url() return type from String to &str
- Use direct references instead of cloning self.url
- Remove unnecessary Arc wrapper in PSBT v1 fallback processing
@bc1cindy
bc1cindy force-pushed the optimize/cli-clone-reduction-#402 branch from 059b114 to 29b5df5 Compare August 20, 2025 15:36
@bc1cindy
bc1cindy marked this pull request as ready for review August 20, 2025 15:42
@spacebear21
spacebear21 merged commit 6995de2 into payjoin:master Aug 21, 2025
10 checks passed
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