mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Merge #137
137: impl Default for Duration r=japaric a=japaric closes #134 Co-authored-by: Jorge Aparicio <jorge@japaric.io>
This commit is contained in:
commit
1d52964df7
2 changed files with 5 additions and 1 deletions
|
@ -118,6 +118,10 @@ if [ -z ${TRAVIS_RUST_VERSION-} ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z ${TARGET-} ]; then
|
||||||
|
TARGET=$(rustc -Vv | grep host | cut -d ' ' -f2)
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_PULL_REQUEST != false ]; then
|
if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_PULL_REQUEST != false ]; then
|
||||||
main
|
main
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -197,7 +197,7 @@ impl PartialOrd for Instant {
|
||||||
/// A `Duration` type to represent a span of time.
|
/// A `Duration` type to represent a span of time.
|
||||||
///
|
///
|
||||||
/// This data type is only available when the `timer-queue` feature is enabled
|
/// This data type is only available when the `timer-queue` feature is enabled
|
||||||
#[derive(Clone, Copy, Eq, Ord, PartialEq, PartialOrd)]
|
#[derive(Clone, Copy, Default, Eq, Ord, PartialEq, PartialOrd)]
|
||||||
#[cfg(feature = "timer-queue")]
|
#[cfg(feature = "timer-queue")]
|
||||||
pub struct Duration(u32);
|
pub struct Duration(u32);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue