chore: format according to cargo fmt
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ac5ef59dfa
commit
dd26be54b5
@ -35,9 +35,7 @@ impl Builder {
|
|||||||
.await?;
|
.await?;
|
||||||
assert!(client.logged_in().await);
|
assert!(client.logged_in().await);
|
||||||
for room in &self.rooms {
|
for room in &self.rooms {
|
||||||
client
|
client.join_room_by_id(&room.as_str().try_into()?).await?;
|
||||||
.join_room_by_id(&room.as_str().try_into()?)
|
|
||||||
.await?;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(Chatbot { client })
|
Ok(Chatbot { client })
|
||||||
|
@ -15,7 +15,15 @@ pub async fn run() -> Result<()> {
|
|||||||
env::var("CRIEUR_MATRIX_HOMESERVER"),
|
env::var("CRIEUR_MATRIX_HOMESERVER"),
|
||||||
env::var("CRIEUR_MATRIX_ROOMS"),
|
env::var("CRIEUR_MATRIX_ROOMS"),
|
||||||
) {
|
) {
|
||||||
(Ok(user), Ok(password), Ok(homeserver), Ok(rooms)) => (user, password, homeserver, rooms.split(",").map(|s| s.to_string()).collect::<Vec<String>>()),
|
(Ok(user), Ok(password), Ok(homeserver), Ok(rooms)) => (
|
||||||
|
user,
|
||||||
|
password,
|
||||||
|
homeserver,
|
||||||
|
rooms
|
||||||
|
.split(",")
|
||||||
|
.map(|s| s.to_string())
|
||||||
|
.collect::<Vec<String>>(),
|
||||||
|
),
|
||||||
_ => bail!("Configuration incomplete, please set all required environment variables"),
|
_ => bail!("Configuration incomplete, please set all required environment variables"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user