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 00e68b7 commit b4c86deCopy full SHA for b4c86de
src/input/datetime.rs
@@ -129,12 +129,9 @@ impl<'a> EitherTimedelta<'a> {
129
let microseconds: f64 = f64::from(py_timedelta.get_microseconds()); // 0 through 999999
130
Ok(86400.0 * days + seconds + microseconds / 1_000_000.0)
131
}
132
- Self::PySubclass(py_timedelta) => {
133
- let total_seconds: f64 = py_timedelta
134
- .call_method0(intern!(py_timedelta.py(), "total_seconds"))?
135
- .extract()?;
136
- Ok(total_seconds)
137
- }
+ Self::PySubclass(py_timedelta) => py_timedelta
+ .call_method0(intern!(py_timedelta.py(), "total_seconds"))?
+ .extract(),
138
139
140
0 commit comments