Change belongs_to to be borrowed non-mutably
This commit is contained in:
parent
e14a21f814
commit
7e4b4269b6
|
@ -25,7 +25,7 @@ impl Message {
|
|||
message: &mut MessageSendSchema,
|
||||
files: Option<Vec<PartialDiscordFileAttachment>>,
|
||||
) -> 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();
|
||||
drop(belongs_to);
|
||||
|
||||
|
|
Loading…
Reference in New Issue