@@ -86,49 +86,6 @@ libc_bitflags!(
86
86
/// Indicates that the mount command is being applied to an already
87
87
/// mounted file system.
88
88
MNT_UPDATE ;
89
- ///// Exported read only.
90
- //#[cfg(any(
91
- //target_os = "dragonfly",
92
- //target_os = "freebsd",
93
- //target_os = "netbsd",
94
- //target_os = "openbsd"
95
- //))]
96
- //MNT_EXRDONLY;
97
- ///// Filesystem is exported.
98
- //MNT_EXPORTED;
99
- ///// Exported to the world.
100
- //#[cfg(any(
101
- //target_os = "dragonfly",
102
- //target_os = "freebsd",
103
- //target_os = "netbsd",
104
- //target_os = "openbsd"
105
- //))]
106
- //MNT_DEFEXPORTED;
107
- ///// Anon uid mapping for all.
108
- //#[cfg(any(
109
- //target_os = "dragonfly",
110
- //target_os = "freebsd",
111
- //target_os = "netbsd",
112
- //target_os = "openbsd"
113
- //))]
114
- //MNT_EXPORTANON;
115
- ///// Exported with Kerberos.
116
- //#[cfg(any(
117
- //target_os = "dragonfly",
118
- //target_os = "freebsd",
119
- //target_os = "netbsd",
120
- //))]
121
- //MNT_EXKERB;
122
- ///// Public export (WebNFS).
123
- //#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))]
124
- //MNT_EXPUBLIC;
125
- ///// Delete export host lists.
126
- //#[cfg(any(
127
- //target_os = "dragonfly",
128
- //target_os = "freebsd",
129
- //target_os = "openbsd",
130
- //))]
131
- //MNT_DELEXPORT;
132
89
/// Check vnode use counts.
133
90
#[ cfg( target_os = "freebsd" ) ]
134
91
MNT_NONBUSY ;
@@ -364,11 +321,9 @@ impl<'a> Nmount<'a> {
364
321
/// Nmount::new()
365
322
/// .str_opt_owned("fspath", mountpoint.to_str().unwrap());
366
323
/// ```
367
- pub fn str_opt_owned < P : ?Sized + NixPath > (
368
- & mut self ,
369
- name : & P ,
370
- val : & P
371
- ) -> & mut Self
324
+ pub fn str_opt_owned < P1 , P2 > ( & mut self , name : & P1 , val : & P2 ) -> & mut Self
325
+ where P1 : ?Sized + NixPath ,
326
+ P2 : ?Sized + NixPath
372
327
{
373
328
name. with_nix_path ( |s| {
374
329
let len = s. to_bytes_with_nul ( ) . len ( ) ;
0 commit comments