Skip to content

Commit

Permalink
Remove unecessary Result
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Sep 18, 2023
1 parent 36256f3 commit ab13b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ impl _Timestamp {
}
}
#[getter]
pub fn get_time(&self) -> PyResult<u64> {
Ok(self.0.get_time().0)
pub fn get_time(&self) -> u64 {
self.0.get_time().0
}
#[getter]
pub fn seconds_since_unix_epoch(&self) -> PyResult<f64> {
Ok(self.0.get_time().as_secs_f64())
pub fn seconds_since_unix_epoch(&self) -> f64 {
self.0.get_time().as_secs_f64()
}
}

Expand Down

0 comments on commit ab13b43

Please sign in to comment.