chore: Update to have the new version 0.3.1.1 (#1668)

This commit is contained in:
J M
2022-07-19 10:03:14 -06:00
committed by GitHub
parent 56acb3f281
commit 0f027fefb8
8 changed files with 40 additions and 17 deletions

View File

@@ -1,17 +1,8 @@
use emver::VersionRange;
use super::*;
use super::{v0_3_0::V0_3_0_COMPAT, *};
const V0_3_1: emver::Version = emver::Version::new(0, 3, 1, 0);
lazy_static::lazy_static! {
pub static ref V0_3_1_COMPAT: VersionRange = VersionRange::Conj(
Box::new(VersionRange::Anchor(
emver::GTE,
emver::Version::new(0, 3, 0, 0),
)),
Box::new(VersionRange::Anchor(emver::LTE, Current::new().semver())),
);
}
#[derive(Clone, Debug)]
pub struct Version;
@@ -25,7 +16,7 @@ impl VersionT for Version {
V0_3_1
}
fn compat(&self) -> &'static VersionRange {
&*V0_3_1_COMPAT
&*V0_3_0_COMPAT
}
async fn up<Db: DbHandle>(&self, _db: &mut Db) -> Result<(), Error> {
Ok(())