move the DumpWriter and Error to their own module

This commit is contained in:
Tamo 2022-10-02 13:24:59 +02:00 committed by Clément Renault
parent 568b743ac8
commit e486878463
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 373 additions and 363 deletions

9
dump/src/error.rs Normal file
View file

@ -0,0 +1,9 @@
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error(transparent)]
Io(#[from] std::io::Error),
#[error(transparent)]
Serde(#[from] serde_json::Error),
}