Remove wrong must_use
This commit is contained in:
parent
b11742ffad
commit
36b85ff350
1 changed files with 0 additions and 5 deletions
|
|
@ -92,12 +92,10 @@ pub trait SocketSpec {
|
|||
}
|
||||
|
||||
impl<T: AsRef<Path>> SocketSpec for T {
|
||||
#[must_use]
|
||||
fn to_proxy_pass(&self) -> String {
|
||||
format!("unix:{}:", self.as_ref().to_str().unwrap())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
fn to_uwsgi_pass(&self) -> String {
|
||||
format!("unix:{}", self.as_ref().to_str().unwrap())
|
||||
}
|
||||
|
|
@ -107,19 +105,16 @@ impl<T: AsRef<Path>> SocketSpec for T {
|
|||
pub struct LocalTcpSocket(NonZeroUsize);
|
||||
|
||||
impl LocalTcpSocket {
|
||||
#[must_use]
|
||||
pub const fn new(x: NonZeroUsize) -> Self {
|
||||
Self(x)
|
||||
}
|
||||
}
|
||||
|
||||
impl SocketSpec for LocalTcpSocket {
|
||||
#[must_use]
|
||||
fn to_proxy_pass(&self) -> String {
|
||||
format!("localhost:{}", self.0)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
fn to_uwsgi_pass(&self) -> String {
|
||||
format!("localhost:{}", self.0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue