diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 09:42:50 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 09:42:50 +0100 |
commit | 26f14df3f460320b2e2d31deb9d3cef90f43790c (patch) | |
tree | 377fa4a978ffe0e82b1ddba5c2009befb6f80fc7 /src/storage/mod.rs | |
parent | cf8b9ac28d6813bd589f363ad3659dd215bd7cea (diff) | |
download | aerogramme-26f14df3f460320b2e2d31deb9d3cef90f43790c.tar.gz aerogramme-26f14df3f460320b2e2d31deb9d3cef90f43790c.zip |
we are doomed with static types
Diffstat (limited to 'src/storage/mod.rs')
-rw-r--r-- | src/storage/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/mod.rs b/src/storage/mod.rs index c0835e6..ee475ee 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -36,8 +36,8 @@ pub trait Sto: Sized { } pub struct Engine<T: Sto> { - bucket: String, - row: T::Builder, + pub bucket: String, + pub row: T::Builder, } pub enum AnyEngine { @@ -45,7 +45,7 @@ pub enum AnyEngine { Garage(Engine<garage::GrgTypes>), } impl AnyEngine { - fn engine<X: Sto>(&self) -> &Engine<X> { + pub fn engine<X: Sto>(&self) -> &Engine<X> { match self { Self::InMemory(x) => x, Self::Garage(x) => x, |