mirror of
https://framagit.org/veretcle/oolatoocs.git
synced 2025-07-20 12:31:18 +02:00
make fmt happy
This commit is contained in:
@@ -39,7 +39,10 @@ pub async fn run(config: &Config) {
|
||||
|
||||
strip_mastodon_tags(&mut tweet_content, &toot.tags).unwrap();
|
||||
|
||||
tweet_content = tweet_content.trim_end_matches('\n').trim_end_matches(' ').to_string();
|
||||
tweet_content = tweet_content
|
||||
.trim_end_matches('\n')
|
||||
.trim_end_matches(' ')
|
||||
.to_string();
|
||||
|
||||
println!("{:?}", tweet_content);
|
||||
}
|
||||
|
@@ -36,6 +36,7 @@ pub fn read_state(
|
||||
}
|
||||
|
||||
/// Writes last treated tweet id and toot id to the db
|
||||
#[allow(dead_code)]
|
||||
pub fn write_state(conn: &Connection, t: TweetToToot) -> Result<(), Box<dyn Error>> {
|
||||
debug!("Write struct {:?}", t);
|
||||
conn.execute(
|
||||
|
@@ -1,6 +1,6 @@
|
||||
use megalodon::entities::status::Tag;
|
||||
use std::error::Error;
|
||||
use regex::Regex;
|
||||
use std::error::Error;
|
||||
|
||||
pub fn strip_mastodon_tags(content: &mut String, tags: &Vec<Tag>) -> Result<(), Box<dyn Error>> {
|
||||
for tag in tags {
|
||||
|
Reference in New Issue
Block a user