We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23281b8 commit 1b25724Copy full SHA for 1b25724
stdlib/src/posixsubprocess.rs
@@ -127,7 +127,7 @@ impl TryFromObject for Fd {
127
fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self> {
128
match MaybeFd::try_from_object(vm, obj)? {
129
MaybeFd::Valid(fd) => Ok(fd),
130
- MaybeFd::Invalid => Err(vm.new_value_error("invalid fd".to_owned())),
+ MaybeFd::Invalid => Err(vm.new_value_error("invalid fd")),
131
}
132
133
0 commit comments