Skip to content

Commit

Permalink
Use Self keyword instead of concrete type name
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 15, 2024
1 parent f18287a commit df83881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ macro_rules! impl_from_fd {
($($ty:ty),* $(,)?) => {$(
impl From<$ty> for OwnedFd {
#[inline]
fn from(this: $ty) -> OwnedFd {
fn from(this: $ty) -> Self {
this.0
}
}
Expand Down

0 comments on commit df83881

Please sign in to comment.