aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-01-24 12:18:35 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-01-24 12:18:35 +0100
commite9c281cbf72413089788d775797906e65cae5599 (patch)
treee0cc635b6415ec31678f2a19bb0ad5a66c02edde /src
parent18df1606dd5a68c7ea0b8284d848dacb94ee35e8 (diff)
downloadezau-e9c281cbf72413089788d775797906e65cae5599.tar.gz
ezau-e9c281cbf72413089788d775797906e65cae5599.tar.bz2
ezau-e9c281cbf72413089788d775797906e65cae5599.zip
cargo fmt
Diffstat (limited to 'src')
-rw-r--r--src/main.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 2876777..b86f281 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -94,8 +94,9 @@ fn inner_main(opts: &Opts) -> Result<()> {
if let Some(m) = &config.matrix {
for room_id in &m.room_id {
- matrix::post_link(m.clone().into(), room_id, &log, &permalink)
- .context(format!("Could not post link to Matrix (room_id: {})", &room_id))?;
+ matrix::post_link(m.clone().into(), room_id, &log, &permalink).context(
+ format!("Could not post link to Matrix (room_id: {})", &room_id),
+ )?;
}
}
}
@@ -205,9 +206,11 @@ fn handle_file(config: &Config, filename: &Path) -> Result<()> {
}
if let Some(m) = &config.matrix {
- for room_id in &m.room_id {
- matrix::post_link(m.clone().into(), room_id, &log, &permalink)
- .context(format!("Could not post link to Matrix (room_id: {})", &room_id))?;
+ for room_id in &m.room_id {
+ matrix::post_link(m.clone().into(), room_id, &log, &permalink).context(format!(
+ "Could not post link to Matrix (room_id: {})",
+ &room_id
+ ))?;
info!("Posted link to Matrix ({})", &room_id);
}
}