Skip to content

Pedantic fixes#372

Merged
rochacbruno merged 4 commits intomainfrom
pedantic
Oct 16, 2025
Merged

Pedantic fixes#372
rochacbruno merged 4 commits intomainfrom
pedantic

Conversation

@rochacbruno
Copy link
Copy Markdown
Owner

@rochacbruno rochacbruno commented Oct 16, 2025

  1. src/server.rs:51 - Changed live_reload: Option to Option<&LiveReload> to
    avoid unnecessary cloning
    • Updated the parameter signature
    • Removed unnecessary .clone() call on line 67
  2. src/server.rs:344 - Changed message: String to message: &str in the broadcast method
    - Updated the method to convert &str to String when sending messages
    - Updated the call site on line 259 to pass &payload instead of payload
  3. src/site.rs:635 - Updated the call site to pass live_reload.as_ref() instead of
    live_reload.clone()

@rochacbruno rochacbruno merged commit 159b158 into main Oct 16, 2025
3 checks passed
@rochacbruno rochacbruno deleted the pedantic branch October 16, 2025 21:13
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.

1 participant