File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ impl Keyring {
90
90
/// Instantiate a keyring from an ID.
91
91
///
92
92
/// This is unsafe because no keyring is known to exist with the given ID.
93
+ ///
94
+ /// # Safety
95
+ ///
96
+ /// This method assumes that the given serial is a valid keyring ID at the kernel level.
93
97
pub unsafe fn new ( id : KeyringSerial ) -> Self {
94
98
Keyring {
95
99
id,
@@ -471,6 +475,10 @@ impl Key {
471
475
/// Instantiate a key from an ID.
472
476
///
473
477
/// This is unsafe because no key is known to exist with the given ID.
478
+ ///
479
+ /// # Safety
480
+ ///
481
+ /// This method assumes that the given serial is a valid key ID at the kernel level.
474
482
pub unsafe fn new ( id : KeyringSerial ) -> Self {
475
483
Self :: new_impl ( id)
476
484
}
You can’t perform that action at this time.
0 commit comments