Minor linting fixes

pull/739/head
Yuri Astrakhan 11 months ago committed by Thomas Tanon
parent 5f603bc4fe
commit 405b95b4bd
  1. 2
      lib/oxsdatatypes/README.md
  2. 2
      lib/oxsdatatypes/src/duration.rs

@ -38,7 +38,7 @@ The `DateTime::now()` function needs special OS support.
Currently: Currently:
- If the `custom-now` feature is enabled, a function computing `now` must be set: - If the `custom-now` feature is enabled, a function computing `now` must be set:
```rust ```rust
use oxsdatatypes::Duration; use oxsdatatypes::Duration;
#[no_mangle] #[no_mangle]
fn custom_ox_now() -> Duration { fn custom_ox_now() -> Duration {

@ -973,7 +973,7 @@ impl fmt::Display for DurationOverflowError {
impl Error for DurationOverflowError {} impl Error for DurationOverflowError {}
/// The year-month and the day-time components of a [`Duration\] have an opposite sign. /// The year-month and the day-time components of a [`Duration`] have an opposite sign.
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
pub struct OppositeSignInDurationComponentsError; pub struct OppositeSignInDurationComponentsError;

Loading…
Cancel
Save