From 25c4ba4b9724799dd4347efba3cc324e73a5d660 Mon Sep 17 00:00:00 2001 From: Alie Date: Fri, 26 Jan 2024 18:53:26 +0100 Subject: [PATCH] using an import incorrectly --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2c5c042..540e562 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use async_std; -use log::{self, info}; +use log; use mastodon_async::entities::visibility::Visibility; use mastodon_async::helpers::{cli, toml as masto_toml}; use mastodon_async::prelude::*; @@ -177,7 +177,7 @@ fn set_url_as_posted(config: &Config, url: &String) -> DynResult<()> { .append(true) // This is needed to append to file .open(&config.files.posted)?; //.expect("Cannot open posted file"); // Maybe we should retry just in case write!(file, "{}\n", url)?; //.expect("Cannot write to posted file"); // maybe we should retry tbh - info!("Set url {} as posted", url); + log::info!("Set url {} as posted", url); Ok(()) }