diff options
| author | Austin Hellyer <[email protected]> | 2016-11-14 18:23:29 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-14 18:23:29 -0800 |
| commit | 80ec9fe2b19f05871d134c9b08d4fc607ec37af6 (patch) | |
| tree | a18af5274a1fce359004fbcd4f9fd2267904ba90 /src/internal | |
| parent | EmbedAuthor 'url' is optional (diff) | |
| download | serenity-80ec9fe2b19f05871d134c9b08d4fc607ec37af6.tar.xz serenity-80ec9fe2b19f05871d134c9b08d4fc607ec37af6.zip | |
Add internal module
Create a general `internal` module, and move `prelude_internal` to
`internal::prelude`.
Diffstat (limited to 'src/internal')
| -rw-r--r-- | src/internal/mod.rs | 1 | ||||
| -rw-r--r-- | src/internal/prelude.rs | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/internal/mod.rs b/src/internal/mod.rs new file mode 100644 index 0000000..b9d7209 --- /dev/null +++ b/src/internal/mod.rs @@ -0,0 +1 @@ +pub mod prelude; diff --git a/src/internal/prelude.rs b/src/internal/prelude.rs new file mode 100644 index 0000000..9b6b993 --- /dev/null +++ b/src/internal/prelude.rs @@ -0,0 +1,9 @@ +//! These prelude re-exports are a set of exports that are commonly used from +//! within the library. +//! +//! These are not publicly re-exported to the end user, and must stay as a +//! private module. + +pub use serde_json::Value; +pub use ::client::ClientError; +pub use ::error::{Error, Result}; |