Expose encoder::Error
This commit is contained in:
parent
63cd853ba1
commit
898a5d680d
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "preserves"
|
name = "preserves"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
authors = ["Tony Garnock-Jones <tonyg@leastfixedpoint.com>"]
|
authors = ["Tony Garnock-Jones <tonyg@leastfixedpoint.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Implementation of the Preserves serialization format via serde."
|
description = "Implementation of the Preserves serialization format via serde."
|
||||||
|
|
|
@ -2,9 +2,9 @@ use std::io::Write;
|
||||||
use crate::value::value::{Value, AValue, Float, Double};
|
use crate::value::value::{Value, AValue, Float, Double};
|
||||||
use num::bigint::BigInt;
|
use num::bigint::BigInt;
|
||||||
use num::cast::ToPrimitive;
|
use num::cast::ToPrimitive;
|
||||||
use std::io::Error;
|
|
||||||
use crate::value::constants::{Op, AtomMinor, CompoundMinor};
|
use crate::value::constants::{Op, AtomMinor, CompoundMinor};
|
||||||
|
|
||||||
|
pub type Error = std::io::Error;
|
||||||
pub type Result = std::result::Result<(), Error>;
|
pub type Result = std::result::Result<(), Error>;
|
||||||
|
|
||||||
pub type EncodePlaceholderMap = std::collections::BTreeMap<Value, usize>;
|
pub type EncodePlaceholderMap = std::collections::BTreeMap<Value, usize>;
|
||||||
|
|
Loading…
Reference in New Issue