aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorXyoz Netsphere <nanoowl@xyooz.net>2022-01-24 12:16:45 +0100
committerXyoz Netsphere <nanoowl@xyooz.net>2022-01-24 12:16:45 +0100
commit18df1606dd5a68c7ea0b8284d848dacb94ee35e8 (patch)
tree1fc89d598c9f79111e978f7fc28f354b596cf1fe /src/main.rs
parentcfc7dc8b3ef149f384bd1f2ef3989701a93c7df2 (diff)
downloadezau-18df1606dd5a68c7ea0b8284d848dacb94ee35e8.tar.gz
ezau-18df1606dd5a68c7ea0b8284d848dacb94ee35e8.tar.bz2
ezau-18df1606dd5a68c7ea0b8284d848dacb94ee35e8.zip
fix: &room_id -> room_id in matrix room loops
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index ada456c..2876777 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -94,7 +94,7 @@ 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)
+ matrix::post_link(m.clone().into(), room_id, &log, &permalink)
.context(format!("Could not post link to Matrix (room_id: {})", &room_id))?;
}
}
@@ -206,7 +206,7 @@ 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)
+ 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);
}