diff --git a/core/lib/src/listener/unix.rs b/core/lib/src/listener/unix.rs index b6dea587..ea1a367e 100644 --- a/core/lib/src/listener/unix.rs +++ b/core/lib/src/listener/unix.rs @@ -40,7 +40,7 @@ impl Bindable for UdsConfig { let lock_path = self.path.with_extension(lock_ext); let lock_file = NamedFile::open_with(lock_path, &opts).await?; - unix::lock_exlusive_nonblocking(lock_file.file())?; + unix::lock_exclusive_nonblocking(lock_file.file())?; if self.path.exists() { tokio::fs::remove_file(&self.path).await?; } diff --git a/core/lib/src/response/body.rs b/core/lib/src/response/body.rs index a743b4da..d37547c1 100644 --- a/core/lib/src/response/body.rs +++ b/core/lib/src/response/body.rs @@ -81,7 +81,7 @@ type SizedBody<'r> = Pin>; type UnsizedBody<'r> = Pin>; enum Inner<'r> { - /// A body that can be seeked to determine it's size. + /// A body that can be `seek()`ed to determine its size. Seekable(SizedBody<'r>), /// A body that has no known size. Unsized(UnsizedBody<'r>), diff --git a/core/lib/src/util/unix.rs b/core/lib/src/util/unix.rs index 8889b78d..de7cbb9e 100644 --- a/core/lib/src/util/unix.rs +++ b/core/lib/src/util/unix.rs @@ -1,7 +1,7 @@ use std::io; use std::os::fd::AsRawFd; -pub fn lock_exlusive_nonblocking(file: &T) -> io::Result<()> { +pub fn lock_exclusive_nonblocking(file: &T) -> io::Result<()> { let raw_fd = file.as_raw_fd(); let res = unsafe { libc::flock(raw_fd, libc::LOCK_EX | libc::LOCK_NB)