diff --git a/src/quark.rs b/src/quark.rs index b3597b08..3718aab8 100644 --- a/src/quark.rs +++ b/src/quark.rs @@ -17,7 +17,7 @@ impl Quark { } #[allow(clippy::trivially_copy_pass_by_ref)] - pub fn to_string(&self) -> &'static str { + pub fn to_string<'a>(&self) -> &'a str { unsafe { CStr::from_ptr(glib_sys::g_quark_to_string(self.to_glib())) .to_str()