diff options
| author | acdenisSK <[email protected]> | 2017-12-27 18:29:34 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-12-27 18:33:29 +0100 |
| commit | 3a0c8908ce837f6fe64f865a1a7a9de63cbd237c (patch) | |
| tree | a8597bb4a7d49cfd614a85d3f2b5a95d3df9e055 /src/builder/edit_channel.rs | |
| parent | Update dependencies (diff) | |
| download | serenity-3a0c8908ce837f6fe64f865a1a7a9de63cbd237c.tar.xz serenity-3a0c8908ce837f6fe64f865a1a7a9de63cbd237c.zip | |
Improve performance of builders even further
By negating hashing altogether.
The increase is around 1000-ish nanoseconds saved.
Diffstat (limited to 'src/builder/edit_channel.rs')
| -rw-r--r-- | src/builder/edit_channel.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builder/edit_channel.rs b/src/builder/edit_channel.rs index 96455e2..fca9a51 100644 --- a/src/builder/edit_channel.rs +++ b/src/builder/edit_channel.rs @@ -1,5 +1,5 @@ use internal::prelude::*; -use std::collections::HashMap; +use super::VecMap; /// A builder to edit a [`GuildChannel`] for use via [`GuildChannel::edit`] /// @@ -19,7 +19,7 @@ use std::collections::HashMap; /// [`GuildChannel`]: ../model/struct.GuildChannel.html /// [`GuildChannel::edit`]: ../model/struct.GuildChannel.html#method.edit #[derive(Clone, Debug, Default)] -pub struct EditChannel(pub HashMap<&'static str, Value>); +pub struct EditChannel(pub VecMap<&'static str, Value>); impl EditChannel { /// The bitrate of the channel in bits. |