Rename value::value to value::repr, the final clippyism
This commit is contained in:
parent
d811032ac7
commit
2b9eddfc79
|
@ -150,7 +150,7 @@ mod ieee754_section_5_10_total_order_tests {
|
|||
|
||||
#[cfg(test)]
|
||||
mod value_tests {
|
||||
use crate::value::{Value, PlainValue, value::Record, signed_integer::SignedInteger};
|
||||
use crate::value::{Value, PlainValue, repr::Record, signed_integer::SignedInteger};
|
||||
use super::dom::Dom;
|
||||
|
||||
type VV = Value<PlainValue<Dom>, Dom>;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::value::value::{Float, Double};
|
||||
use crate::value::repr::{Float, Double};
|
||||
use crate::value::{Value, NestedValue, IOValue, UnwrappedIOValue, Map};
|
||||
use crate::error::{Error, ExpectedKind, Received};
|
||||
use serde::Deserialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use super::value::IOValue;
|
||||
use super::repr::IOValue;
|
||||
|
||||
pub static MAGIC: &str = "$____Preserves_Serde_Magic";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ pub mod packed;
|
|||
pub mod reader;
|
||||
pub mod ser;
|
||||
pub mod signed_integer;
|
||||
pub mod value;
|
||||
pub mod repr;
|
||||
pub mod writer;
|
||||
|
||||
pub use de::Deserializer;
|
||||
|
@ -13,24 +13,24 @@ pub use packed::PackedReader;
|
|||
pub use packed::PackedWriter;
|
||||
pub use reader::ConfiguredReader;
|
||||
pub use reader::Reader;
|
||||
pub use repr::AnnotatedValue;
|
||||
pub use repr::ArcValue;
|
||||
pub use repr::Domain;
|
||||
pub use repr::IOValue;
|
||||
pub use repr::Map;
|
||||
pub use repr::NestedValue;
|
||||
pub use repr::PlainValue;
|
||||
pub use repr::RcValue;
|
||||
pub use repr::Set;
|
||||
pub use repr::UnwrappedIOValue;
|
||||
pub use repr::Value;
|
||||
pub use ser::Serializer;
|
||||
pub use ser::to_value;
|
||||
pub use value::AnnotatedValue;
|
||||
pub use value::ArcValue;
|
||||
pub use value::Domain;
|
||||
pub use value::IOValue;
|
||||
pub use value::Map;
|
||||
pub use value::NestedValue;
|
||||
pub use value::PlainValue;
|
||||
pub use value::RcValue;
|
||||
pub use value::Set;
|
||||
pub use value::UnwrappedIOValue;
|
||||
pub use value::Value;
|
||||
pub use writer::Writer;
|
||||
|
||||
pub use value::FALSE;
|
||||
pub use value::TRUE;
|
||||
pub use value::EMPTY_SEQ;
|
||||
pub use repr::FALSE;
|
||||
pub use repr::TRUE;
|
||||
pub use repr::EMPTY_SEQ;
|
||||
|
||||
pub fn invert_map<A, B>(m: &Map<A, B>) -> Map<B, A>
|
||||
where A: Clone, B: Clone + Ord
|
||||
|
|
|
@ -5,7 +5,7 @@ use std::convert::TryFrom;
|
|||
use std::convert::TryInto;
|
||||
use std::marker::PhantomData;
|
||||
use super::super::signed_integer::SignedInteger;
|
||||
use super::super::value::{Value, NestedValue, Domain, IOValue, FALSE, TRUE, Map, Set, Record, Annotations};
|
||||
use super::super::repr::{Value, NestedValue, Domain, IOValue, FALSE, TRUE, Map, Set, Record, Annotations};
|
||||
|
||||
use super::constants::Tag;
|
||||
use super::super::reader::{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::borrow::Cow;
|
||||
use std::io::{Read, Error};
|
||||
use std::marker::PhantomData;
|
||||
use super::value::{NestedValue, IOValue};
|
||||
use super::repr::{NestedValue, IOValue};
|
||||
use crate::error::{self, ExpectedKind, Received, io_eof};
|
||||
|
||||
pub type IOResult<T> = std::result::Result<T, Error>;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::value::{Value, value::Record, Map, IOValue};
|
||||
use crate::value::{Value, repr::Record, Map, IOValue};
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use num::bigint::BigInt;
|
||||
use std::io::Error;
|
||||
use super::signed_integer::SignedIntegerRepr;
|
||||
use super::value::{Domain, Value, NestedValue, IOValue, UnwrappedIOValue, Float, Double};
|
||||
use super::repr::{Domain, Value, NestedValue, IOValue, UnwrappedIOValue, Float, Double};
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue