From 770edec2125540da62d1eabe351408b4014e27c3 Mon Sep 17 00:00:00 2001 From: Andrew Straw Date: Thu, 6 Oct 2022 14:34:38 +0200 Subject: [PATCH] add clarifying comment --- src/tz_macos.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tz_macos.rs b/src/tz_macos.rs index 897a934..308634c 100644 --- a/src/tz_macos.rs +++ b/src/tz_macos.rs @@ -80,6 +80,9 @@ mod string_ref { pub(crate) struct StringRef<'a, T> { string: CFStringRef, + // We exclude mutable access to the parent by taking a reference to the + // parent (rather than, for example, just using a marker to enforce the + // parent's lifetime). _parent: &'a T, }