chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa21fb0
)
fake time: Make fields pub that should be
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 24 Apr 2022 22:41:13 +0000
(23:41 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 25 Apr 2022 00:14:28 +0000
(
01:14
+0100)
We want this for FakeTimeSpec in a test case.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/fake-time.rs
patch
|
blob
|
history
diff --git
a/src/fake-time.rs
b/src/fake-time.rs
index c71109c27c2f39341ffdee4365f7b6679b8240c1..0ac9b770d7468de3507dc648cb2cd80d7d24e5b4 100644
(file)
--- a/
src/fake-time.rs
+++ b/
src/fake-time.rs
@@
-11,11
+11,11
@@
type Micros = u64;
#[derive(Deserialize,Debug,Clone,Default)]
#[serde(transparent)]
-pub struct FakeTimeConfig(Option<FakeTimeSpec>);
+pub struct FakeTimeConfig(
pub
Option<FakeTimeSpec>);
#[derive(Deserialize,Serialize,Debug,Clone,Default)]
#[serde(into="Vec<Millis>", try_from="Vec<Millis>")]
-pub struct FakeTimeSpec(Option<Millis>);
+pub struct FakeTimeSpec(
pub
Option<Millis>);
#[derive(Error,Debug)]
#[error("invalid fake time: must be list of 0 or 1 numbers (ms)")]