Change belongs_to to be borrowed non-mutably
This commit is contained in:
parent
b56b5f5f12
commit
6312bd3572
|
@ -25,7 +25,7 @@ impl Message {
|
||||||
message: &mut MessageSendSchema,
|
message: &mut MessageSendSchema,
|
||||||
files: Option<Vec<PartialDiscordFileAttachment>>,
|
files: Option<Vec<PartialDiscordFileAttachment>>,
|
||||||
) -> Result<Message, crate::errors::ChorusLibError> {
|
) -> Result<Message, crate::errors::ChorusLibError> {
|
||||||
let belongs_to = user.belongs_to.borrow_mut();
|
let belongs_to = user.belongs_to.borrow();
|
||||||
let url_api = belongs_to.urls.get_api().to_string();
|
let url_api = belongs_to.urls.get_api().to_string();
|
||||||
drop(belongs_to);
|
drop(belongs_to);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue