Skip to content

Commit e8a8764

Browse files
committed
Run rustfmt
1 parent a27ae59 commit e8a8764

5 files changed

Lines changed: 15 additions & 12 deletions

File tree

src/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ use assign::assign;
88
use async_stream::try_stream;
99
use futures_core::stream::Stream;
1010
use ruma::{
11+
DeviceId, UserId,
1112
api::{
13+
OutgoingRequest, SupportedVersions,
1214
auth_scheme::{AuthScheme, SendAccessToken},
1315
client::{
1416
account::register::{self, RegistrationKind},
@@ -17,14 +19,12 @@ use ruma::{
1719
uiaa::UserIdentifier,
1820
},
1921
path_builder::{PathBuilder, SinglePath, VersionHistory},
20-
OutgoingRequest, SupportedVersions,
2122
},
2223
presence::PresenceState,
23-
DeviceId, UserId,
2424
};
2525

2626
use crate::{
27-
add_user_id_to_query, send_customized_request, Error, HttpClient, ResponseError, ResponseResult,
27+
Error, HttpClient, ResponseError, ResponseResult, add_user_id_to_query, send_customized_request,
2828
};
2929

3030
mod builder;

src/client/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::sync::{Arc, Mutex};
22

33
use ruma::api::{
4-
auth_scheme::SendAccessToken, client::discovery::get_supported_versions, SupportedVersions,
4+
SupportedVersions, auth_scheme::SendAccessToken, client::discovery::get_supported_versions,
55
};
66

77
use super::{Client, ClientData, TokenMode};

src/error.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ impl<E: Display, F: Display> Display for Error<E, F> {
4040
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
4141
match self {
4242
Self::AuthenticationRequired => {
43-
write!(f, "The queried endpoint requires authentication but was called with an anonymous client.")
43+
write!(
44+
f,
45+
"The queried endpoint requires authentication but was called with an anonymous client."
46+
)
4447
}
4548
Self::IntoHttp(err) => write!(f, "HTTP request construction failed: {err}"),
4649
Self::Url(err) => write!(f, "Invalid URL: {err}"),

src/http_client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ use std::{future::Future, pin::Pin};
55

66
use bytes::BufMut;
77
use ruma::{
8+
UserId,
89
api::{
10+
OutgoingRequest,
911
auth_scheme::{AuthScheme, SendAccessToken},
1012
path_builder::PathBuilder,
11-
OutgoingRequest,
1213
},
13-
UserId,
1414
};
1515

16-
use crate::{add_user_id_to_query, ResponseError, ResponseResult};
16+
use crate::{ResponseError, ResponseResult, add_user_id_to_query};
1717

1818
#[cfg(feature = "hyper")]
1919
mod hyper;

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
//! # .await?;
6565
//!
6666
//! use ruma::{
67-
//! api::{client::alias::get_alias, MatrixVersion},
67+
//! api::{MatrixVersion, client::alias::get_alias},
6868
//! owned_room_alias_id, room_id,
6969
//! };
7070
//!
@@ -102,14 +102,14 @@ use std::{any::type_name, future::Future};
102102
#[doc(no_inline)]
103103
pub use ruma;
104104
use ruma::{
105+
UserId,
105106
api::{
107+
OutgoingRequest,
106108
auth_scheme::{AuthScheme, SendAccessToken},
107109
path_builder::PathBuilder,
108-
OutgoingRequest,
109110
},
110-
UserId,
111111
};
112-
use tracing::{info_span, Instrument};
112+
use tracing::{Instrument, info_span};
113113

114114
#[cfg(feature = "client-api")]
115115
mod client;

0 commit comments

Comments
 (0)