From ab164dd877168e6b603fae81c73bb496faf8490e Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sat, 10 Dec 2022 15:31:31 +0800 Subject: [PATCH] remove unnecessary unsafe block --- src/sys/epoll.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/epoll.rs b/src/sys/epoll.rs index 387541c0b9..36f9c17d0e 100644 --- a/src/sys/epoll.rs +++ b/src/sys/epoll.rs @@ -83,7 +83,7 @@ impl EpollEvent { /// let epoll = Epoll::new(EpollCreateFlags::empty())?; /// /// // Create eventfd & Add event -/// let eventfd = unsafe { eventfd(0, EfdFlags::empty())? }; +/// let eventfd = eventfd(0, EfdFlags::empty())?; /// epoll.add(&eventfd, EpollEvent::new(EpollFlags::EPOLLIN,DATA))?; /// /// // Arm eventfd & Time wait