We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
from_anything
1 parent b3d7716 commit 5f46631Copy full SHA for 5f46631
src/unistd.rs
@@ -2459,11 +2459,12 @@ impl From<&libc::passwd> for User {
2459
}
2460
2461
impl User {
2462
- fn from_anything(f: impl Fn(*mut libc::passwd,
2463
- *mut libc::c_char,
2464
- libc::size_t,
2465
- *mut *mut libc::passwd) -> libc::c_int)
2466
- -> Result<Option<Self>>
+ fn from_anything<F>(f: F) -> Result<Option<Self>>
+ where
+ F: Fn(*mut libc::passwd,
+ *mut libc::c_char,
+ libc::size_t,
2467
+ *mut *mut libc::passwd) -> libc::c_int
2468
{
2469
let bufsize = match sysconf(SysconfVar::GETPW_R_SIZE_MAX) {
2470
Ok(Some(n)) => n as usize,
0 commit comments