File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
35
35
(#[ 1252] ( https://github.com/nix-rust/nix/pull/1252 ) )
36
36
- Added support for ` Ipv4PacketInfo ` and ` Ipv6PacketInfo ` to ` ControlMessage ` .
37
37
(#[ 1222] ( https://github.com/nix-rust/nix/pull/1222 ) )
38
- - ` CpuSet ` now implements ` Default ` .
38
+ - ` CpuSet ` and ` UnixCredentials ` now implement ` Default ` .
39
39
(#[ 1244] ( https://github.com/nix-rust/nix/pull/1244 ) )
40
40
41
41
### Changed
Original file line number Diff line number Diff line change @@ -221,6 +221,12 @@ cfg_if! {
221
221
}
222
222
}
223
223
224
+ impl Default for UnixCredentials {
225
+ fn default ( ) -> Self {
226
+ Self :: new( )
227
+ }
228
+ }
229
+
224
230
impl From <libc:: ucred> for UnixCredentials {
225
231
fn from( cred: libc:: ucred) -> Self {
226
232
UnixCredentials ( cred)
You can’t perform that action at this time.
0 commit comments