Move state.rs under database module

The types in state are only used for the database
This commit is contained in:
Franck Royer 2020-12-23 15:20:24 +11:00
parent 8c7964bfee
commit b410de01df
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
8 changed files with 26 additions and 22 deletions

View file

@ -1,9 +1,11 @@
use crate::state::Swap;
use anyhow::{anyhow, bail, Context, Result};
use serde::{de::DeserializeOwned, Serialize};
use state::Swap;
use std::path::Path;
use uuid::Uuid;
pub mod state;
#[derive(Debug)]
pub struct Database(sled::Db);
@ -82,7 +84,7 @@ where
#[cfg(test)]
mod tests {
use crate::state::{Alice, AliceEndState, Bob, BobEndState};
use crate::database::state::{Alice, AliceEndState, Bob, BobEndState};
use super::*;