aboutsummaryrefslogtreecommitdiff
path: root/src/ext/framework/create_command.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-24 10:50:58 -0800
committerAustin Hellyer <[email protected]>2017-01-24 10:50:58 -0800
commit8c5ee70b28b42ac92f899932ab2ddafeb9c6f913 (patch)
tree8116d495dd8360acbfee5b2e1199b333091aba51 /src/ext/framework/create_command.rs
parentAvoid a needless clone on login (diff)
downloadserenity-8c5ee70b28b42ac92f899932ab2ddafeb9c6f913.tar.xz
serenity-8c5ee70b28b42ac92f899932ab2ddafeb9c6f913.zip
Avoid a lot of Arc/Message/RwLock clones
When passing monitoring info from the shard handler to the dispatch function, pass arguments by reference instead of by cloning and passing by reference. Additionally, don't re-clone handler Arcs and temporary Messages.
Diffstat (limited to 'src/ext/framework/create_command.rs')
0 files changed, 0 insertions, 0 deletions