Janitor: Fix clippy::missing_safety_doc

This commit is contained in:
Tobias Hunger 2021-08-05 19:30:07 +02:00 committed by Simon Hausmann
parent 9dcd107e84
commit cbdea7c9c7
2 changed files with 8 additions and 1 deletions

View file

@ -99,7 +99,8 @@ pub trait PropertyInfo<Item, Value> {
/// Calls Property::link_two_ways with the property represented here and the property pointer
///
/// Safety: the property2 must be a pinned pointer to a Property of the same type
/// # Safety
/// the property2 must be a pinned pointer to a Property of the same type
#[allow(unsafe_code)]
unsafe fn link_two_ways(&self, item: Pin<&Item>, property2: *const ());
}