File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -2459,11 +2459,12 @@ impl From<&libc::passwd> for User {
2459
2459
}
2460
2460
2461
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 > >
2462
+ fn from_anything < F > ( f : F ) -> Result < Option < Self > >
2463
+ where
2464
+ F : Fn ( * mut libc:: passwd ,
2465
+ * mut libc:: c_char ,
2466
+ libc:: size_t ,
2467
+ * mut * mut libc:: passwd ) -> libc:: c_int
2467
2468
{
2468
2469
let bufsize = match sysconf ( SysconfVar :: GETPW_R_SIZE_MAX ) {
2469
2470
Ok ( Some ( n) ) => n as usize ,
@@ -2578,11 +2579,12 @@ impl Group {
2578
2579
ret
2579
2580
}
2580
2581
2581
- fn from_anything ( f : impl Fn ( * mut libc:: group ,
2582
- * mut libc:: c_char ,
2583
- libc:: size_t ,
2584
- * mut * mut libc:: group ) -> libc:: c_int )
2585
- -> Result < Option < Self > >
2582
+ fn from_anything < F > ( f : F ) -> Result < Option < Self > >
2583
+ where
2584
+ F : Fn ( * mut libc:: group ,
2585
+ * mut libc:: c_char ,
2586
+ libc:: size_t ,
2587
+ * mut * mut libc:: group ) -> libc:: c_int
2586
2588
{
2587
2589
let bufsize = match sysconf ( SysconfVar :: GETGR_R_SIZE_MAX ) {
2588
2590
Ok ( Some ( n) ) => n as usize ,
You can’t perform that action at this time.
0 commit comments