[fractal/clippy-ci: 15/25] API: Use submodule for identifiers instead of the prelude



commit 08209eeb67372aeac6f085513893dd2b1e7bf390
Author: Alejandro Domínguez <adomu net-c com>
Date:   Fri Feb 7 01:53:53 2020 +0100

    API: Use submodule for identifiers instead of the prelude

 fractal-matrix-api/src/lib.rs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/fractal-matrix-api/src/lib.rs b/fractal-matrix-api/src/lib.rs
index 0999b0af..9b44521b 100644
--- a/fractal-matrix-api/src/lib.rs
+++ b/fractal-matrix-api/src/lib.rs
@@ -12,11 +12,7 @@ pub mod r0;
 mod serde;
 pub mod types;
 
-pub mod prelude {
-    pub use ruma_identifiers::DeviceId;
-    pub use ruma_identifiers::RoomAliasId;
-    pub use ruma_identifiers::RoomId;
-}
+pub use ruma_identifiers as identifiers;
 
 #[cfg(test)]
 mod tests {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]