From 3e9054a07d1132312632d22146c47c34308ed837 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Wed, 14 Feb 2024 23:24:44 +0000 Subject: [PATCH] clippy and newsfragment --- newsfragments/3802.added.md | 1 + src/pybacked.rs | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 newsfragments/3802.added.md diff --git a/newsfragments/3802.added.md b/newsfragments/3802.added.md new file mode 100644 index 00000000000..86b98e9df97 --- /dev/null +++ b/newsfragments/3802.added.md @@ -0,0 +1 @@ +Add `PyBackedStr` and `PyBackedBytes`, as alternatives to `&str` and `&bytes` where a Python object owns the data. diff --git a/src/pybacked.rs b/src/pybacked.rs index d1e60db6149..b5301399fb5 100644 --- a/src/pybacked.rs +++ b/src/pybacked.rs @@ -1,3 +1,5 @@ +//! Contains types for working with Python objects that own the underlying data. + use std::{ops::Deref, ptr::NonNull}; use crate::{