Skip to content

Commit

Permalink
Fix GenRandom trait
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu authored Jan 27, 2025
1 parent c839157 commit c0970f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,8 @@ impl std::os::unix::prelude::AsRawFd for TryAcquireClient {

#[cfg(any(unix, windows))]
trait GenRandom {
fn new_random() -> io::Result<Self>;
fn new_random() -> io::Result<Self>
where Self: Sized;
}

#[cfg(any(unix, windows))]
Expand Down

0 comments on commit c0970f6

Please sign in to comment.