@@ -54,7 +54,7 @@ impl HSTRING {
5454 }
5555
5656 /// Get the contents of this `HSTRING` as a OsString.
57- #[ cfg( all ( feature = "std" , windows ) ) ]
57+ #[ cfg( feature = "std" ) ]
5858 pub fn to_os_string ( & self ) -> std:: ffi:: OsString {
5959 std:: os:: windows:: ffi:: OsStringExt :: from_wide ( self . as_wide ( ) )
6060 }
@@ -154,14 +154,14 @@ impl From<&String> for HSTRING {
154154 }
155155}
156156
157- #[ cfg( all ( feature = "std" , windows ) ) ]
157+ #[ cfg( feature = "std" ) ]
158158impl From < & std:: path:: Path > for HSTRING {
159159 fn from ( value : & std:: path:: Path ) -> Self {
160160 value. as_os_str ( ) . into ( )
161161 }
162162}
163163
164- #[ cfg( all ( feature = "std" , windows ) ) ]
164+ #[ cfg( feature = "std" ) ]
165165impl From < & std:: ffi:: OsStr > for HSTRING {
166166 fn from ( value : & std:: ffi:: OsStr ) -> Self {
167167 unsafe {
@@ -174,14 +174,14 @@ impl From<&std::ffi::OsStr> for HSTRING {
174174 }
175175}
176176
177- #[ cfg( all ( feature = "std" , windows ) ) ]
177+ #[ cfg( feature = "std" ) ]
178178impl From < std:: ffi:: OsString > for HSTRING {
179179 fn from ( value : std:: ffi:: OsString ) -> Self {
180180 value. as_os_str ( ) . into ( )
181181 }
182182}
183183
184- #[ cfg( all ( feature = "std" , windows ) ) ]
184+ #[ cfg( feature = "std" ) ]
185185impl From < & std:: ffi:: OsString > for HSTRING {
186186 fn from ( value : & std:: ffi:: OsString ) -> Self {
187187 value. as_os_str ( ) . into ( )
@@ -286,28 +286,28 @@ impl PartialEq<&HSTRING> for String {
286286 }
287287}
288288
289- #[ cfg( all ( feature = "std" , windows ) ) ]
289+ #[ cfg( feature = "std" ) ]
290290impl PartialEq < std:: ffi:: OsString > for HSTRING {
291291 fn eq ( & self , other : & std:: ffi:: OsString ) -> bool {
292292 * self == * * other
293293 }
294294}
295295
296- #[ cfg( all ( feature = "std" , windows ) ) ]
296+ #[ cfg( feature = "std" ) ]
297297impl PartialEq < std:: ffi:: OsString > for & HSTRING {
298298 fn eq ( & self , other : & std:: ffi:: OsString ) -> bool {
299299 * * self == * * other
300300 }
301301}
302302
303- #[ cfg( all ( feature = "std" , windows ) ) ]
303+ #[ cfg( feature = "std" ) ]
304304impl PartialEq < & std:: ffi:: OsString > for HSTRING {
305305 fn eq ( & self , other : & & std:: ffi:: OsString ) -> bool {
306306 * self == * * * other
307307 }
308308}
309309
310- #[ cfg( all ( feature = "std" , windows ) ) ]
310+ #[ cfg( feature = "std" ) ]
311311impl PartialEq < std:: ffi:: OsStr > for HSTRING {
312312 fn eq ( & self , other : & std:: ffi:: OsStr ) -> bool {
313313 self . as_wide ( )
@@ -317,56 +317,56 @@ impl PartialEq<std::ffi::OsStr> for HSTRING {
317317 }
318318}
319319
320- #[ cfg( all ( feature = "std" , windows ) ) ]
320+ #[ cfg( feature = "std" ) ]
321321impl PartialEq < std:: ffi:: OsStr > for & HSTRING {
322322 fn eq ( & self , other : & std:: ffi:: OsStr ) -> bool {
323323 * * self == * other
324324 }
325325}
326326
327- #[ cfg( all ( feature = "std" , windows ) ) ]
327+ #[ cfg( feature = "std" ) ]
328328impl PartialEq < & std:: ffi:: OsStr > for HSTRING {
329329 fn eq ( & self , other : & & std:: ffi:: OsStr ) -> bool {
330330 * self == * * other
331331 }
332332}
333333
334- #[ cfg( all ( feature = "std" , windows ) ) ]
334+ #[ cfg( feature = "std" ) ]
335335impl PartialEq < HSTRING > for std:: ffi:: OsStr {
336336 fn eq ( & self , other : & HSTRING ) -> bool {
337337 * other == * self
338338 }
339339}
340340
341- #[ cfg( all ( feature = "std" , windows ) ) ]
341+ #[ cfg( feature = "std" ) ]
342342impl PartialEq < HSTRING > for & std:: ffi:: OsStr {
343343 fn eq ( & self , other : & HSTRING ) -> bool {
344344 * other == * * self
345345 }
346346}
347347
348- #[ cfg( all ( feature = "std" , windows ) ) ]
348+ #[ cfg( feature = "std" ) ]
349349impl PartialEq < & HSTRING > for std:: ffi:: OsStr {
350350 fn eq ( & self , other : & & HSTRING ) -> bool {
351351 * * other == * self
352352 }
353353}
354354
355- #[ cfg( all ( feature = "std" , windows ) ) ]
355+ #[ cfg( feature = "std" ) ]
356356impl PartialEq < HSTRING > for std:: ffi:: OsString {
357357 fn eq ( & self , other : & HSTRING ) -> bool {
358358 * other == * * self
359359 }
360360}
361361
362- #[ cfg( all ( feature = "std" , windows ) ) ]
362+ #[ cfg( feature = "std" ) ]
363363impl PartialEq < HSTRING > for & std:: ffi:: OsString {
364364 fn eq ( & self , other : & HSTRING ) -> bool {
365365 * other == * * * self
366366 }
367367}
368368
369- #[ cfg( all ( feature = "std" , windows ) ) ]
369+ #[ cfg( feature = "std" ) ]
370370impl PartialEq < & HSTRING > for std:: ffi:: OsString {
371371 fn eq ( & self , other : & & HSTRING ) -> bool {
372372 * * other == * * self
@@ -389,14 +389,14 @@ impl TryFrom<HSTRING> for String {
389389 }
390390}
391391
392- #[ cfg( all ( feature = "std" , windows ) ) ]
392+ #[ cfg( feature = "std" ) ]
393393impl < ' a > From < & ' a HSTRING > for std:: ffi:: OsString {
394394 fn from ( hstring : & HSTRING ) -> Self {
395395 hstring. to_os_string ( )
396396 }
397397}
398398
399- #[ cfg( all ( feature = "std" , windows ) ) ]
399+ #[ cfg( feature = "std" ) ]
400400impl From < HSTRING > for std:: ffi:: OsString {
401401 fn from ( hstring : HSTRING ) -> Self {
402402 Self :: from ( & hstring)
0 commit comments