style: use tabs over spaces
This commit is contained in:
parent
f2979d4cde
commit
f0550dd429
41 changed files with 1112 additions and 1109 deletions
1
.rustfmt.toml
Normal file
1
.rustfmt.toml
Normal file
|
@ -0,0 +1 @@
|
|||
hard_tabs = true
|
|
@ -25,7 +25,9 @@ pub async fn get_sender(message_id: MessageId) -> Result<UserId> {
|
|||
|
||||
if let StatusCode::OK = status {
|
||||
let data = resp.json::<PluralKitMessage>().await?;
|
||||
let id: u64 = data.sender.parse().wrap_err_with(|| format!("Couldn't parse response from PluralKit as a UserId! Here's the response:\n{data:#?}"))?;
|
||||
let id: u64 = data.sender.parse().wrap_err_with(|| {
|
||||
format!("Couldn't parse response from PluralKit as a UserId! Here's the response:\n{data:#?}")
|
||||
})?;
|
||||
let sender = UserId::from(id);
|
||||
|
||||
Ok(sender)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue