Skip to content

Commit d07cbce

Browse files
zdevitofacebook-github-bot
authored andcommitted
Fix incorrect lifetime coupling. (#415)
Summary: Pull Request resolved: #415 Well that took two hours to find... ghstack-source-id: 293930032 exported-using-ghexport Reviewed By: mariusae Differential Revision: D77678286 fbshipit-source-id: d4d5757a9b2e2d22e6346a1ee6cdafc8822485ee
1 parent 50a99d9 commit d07cbce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monarch_tensor_worker/src/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ enum PyArg<'a> {
556556
}
557557

558558
/// Serialize into a `PyObject`.
559-
impl<'py> TryIntoPyObjectUnsafe<'py, PyAny> for &PyArg<'py> {
559+
impl<'a, 'py> TryIntoPyObjectUnsafe<'py, PyAny> for &PyArg<'a> {
560560
unsafe fn try_to_object_unsafe(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
561561
match self {
562562
// SAFETY: This inherits the unsafety of `rvalue_to_ivalue` (see comment

0 commit comments

Comments
 (0)