summaryrefslogtreecommitdiff
path: root/rust/src/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/string.rs')
-rw-r--r--rust/src/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/string.rs b/rust/src/string.rs
index 5be623c1..820418d0 100644
--- a/rust/src/string.rs
+++ b/rust/src/string.rs
@@ -189,7 +189,7 @@ pub unsafe trait AsCStr {
fn to_cstr(self) -> Self::Result;
}
-unsafe impl<'a> AsCStr for &'a CStr {
+unsafe impl AsCStr for &CStr {
type Result = Self;
fn to_cstr(self) -> Self::Result {