Skip to content

Commit

Permalink
Update plugins/localhost/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian-Lars <[email protected]>
  • Loading branch information
arihav and FabianLars authored Nov 6, 2024
1 parent 85d3706 commit 28467d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/localhost/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ impl Builder {
}
}

pub fn host<H: AsRef<str>>(mut self, host: H) -> Self {
self.host = Some(host.as_ref().to_string());
// Change the host the plugin binds to. Defaults to `localhost`.
pub fn host<H: Into<String>>(mut self, host: H) -> Self {
self.host = Some(host.into());
self
}

Expand Down

0 comments on commit 28467d9

Please sign in to comment.