File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " shared_memory"
33description = " A user friendly crate that allows you to share memory between processes"
4- version = " 0.12.0 "
4+ version = " 0.12.1 "
55authors = [" ElasT0ny <elast0ny00@gmail.com>" ]
66license = " MIT OR Apache-2.0"
7- edition = " 2018 "
7+ edition = " 2021 "
88
99# Extra fields for crates.io
1010readme = " README.md"
Original file line number Diff line number Diff line change @@ -66,10 +66,8 @@ impl Drop for ShmemConf {
6666 }
6767 }
6868}
69- #[ allow( clippy:: new_without_default) ]
70- impl ShmemConf {
71- /// Create a new default shmem config
72- pub fn new ( ) -> Self {
69+ impl Default for ShmemConf {
70+ fn default ( ) -> Self {
7371 Self {
7472 owner : false ,
7573 os_id : None ,
@@ -78,6 +76,12 @@ impl ShmemConf {
7876 size : 0 ,
7977 }
8078 }
79+ }
80+ impl ShmemConf {
81+ /// Create a new default shmem config
82+ pub fn new ( ) -> Self {
83+ ShmemConf :: default ( )
84+ }
8185 /// Provide a specific os identifier for the mapping
8286 ///
8387 /// When not specified, a randomly generated identifier will be used
You can’t perform that action at this time.
0 commit comments