Update plugins/localhost/src/lib.rs

Co-authored-by: Fabian-Lars <github@fabianlars.de>
pull/1982/head
Ari 9 months ago committed by GitHub
parent 85d37060c5
commit 28467d9801
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
}

Loading…
Cancel
Save