Skip to content

Commit ce50def

Browse files
flattened mod structure in types crate
1 parent 918a038 commit ce50def

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

amqp-type/src/types/amqp_type.rs renamed to amqp-type/src/amqp_type.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use std::hash::Hash;
33
use bigdecimal::num_traits::ToBytes;
44
use indexmap::IndexMap;
55

6-
use crate::types::binary::Binary;
7-
use crate::types::collection::*;
8-
use crate::types::decimal::*;
9-
use crate::types::floating_point::*;
6+
use crate::binary::Binary;
7+
use crate::collection::*;
8+
use crate::decimal::*;
9+
use crate::floating_point::*;
1010

1111
pub trait Hashable: Hash {}
1212

amqp-type/src/types/binary.rs renamed to amqp-type/src/binary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::types::amqp_type::Encode;
1+
use crate::amqp_type::Encode;
22

33
use super::amqp_type::Encoded;
44

amqp-type/src/types/collection.rs renamed to amqp-type/src/collection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::hash::Hash;
22

33
use indexmap::IndexMap;
44

5-
use crate::types::amqp_type::{AmqpType, Encode};
5+
use crate::amqp_type::{AmqpType, Encode};
66

77
use super::amqp_type::Encoded;
88

amqp-type/src/types/decimal.rs renamed to amqp-type/src/decimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::types::amqp_type::{Constructor, Encode};
1+
use crate::amqp_type::{Constructor, Encode};
22
use bigdecimal::BigDecimal;
33

44
use super::amqp_type::Encoded;

amqp-type/src/types/floating_point.rs renamed to amqp-type/src/floating_point.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::hash::Hash;
22

3-
use crate::types::amqp_type::{Encode, Encoded};
3+
use crate::amqp_type::{Encode, Encoded};
44

55
pub struct Float(f32);
66
pub struct Double(f64);

amqp-type/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
mod error;
2-
mod types;
2+
mod amqp_type;
3+
mod binary;
4+
mod collection;
5+
mod decimal;
6+
mod floating_point;

amqp-type/src/types/mod.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)