From 1589d6089a991230e535a8bcf3247ff7c5e169b1 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Thu, 27 Jun 2024 14:48:47 +0000 Subject: [PATCH] automatic cargo CI changes --- members/diesel-demo/src/cli.rs | 5 ++--- members/diesel-demo/src/lib.rs | 10 +++------- members/diesel-demo/src/models.rs | 1 - 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/members/diesel-demo/src/cli.rs b/members/diesel-demo/src/cli.rs index af5640a..fd180b8 100644 --- a/members/diesel-demo/src/cli.rs +++ b/members/diesel-demo/src/cli.rs @@ -3,9 +3,8 @@ use std::fmt::Display; use comfy_table::presets::UTF8_FULL_CONDENSED; use comfy_table::Table; use console::{style, Color}; +use dialoguer::BasicHistory; use dialoguer::{theme::ColorfulTheme, Completion, Input}; -use dialoguer::{BasicHistory, History}; -use libpt::log::{info, warn}; use crate::models::{self, Post}; @@ -123,6 +122,6 @@ pub(crate) fn borderprint(content: impl ToString, color: Option) { .add_row(vec![content.to_string()]); match color { Some(c) => println!("{}", style(table).fg(c)), - None => println!("{table}") + None => println!("{table}"), } } diff --git a/members/diesel-demo/src/lib.rs b/members/diesel-demo/src/lib.rs index b71f838..ee0d7da 100644 --- a/members/diesel-demo/src/lib.rs +++ b/members/diesel-demo/src/lib.rs @@ -1,20 +1,17 @@ +pub mod cli; pub mod models; pub mod schema; -pub mod cli; use self::schema::posts::dsl::*; -use std::io::Write; -use std::{env, io}; +use std::env; -use colored::Colorize; -use dialoguer::Input; use diesel::prelude::*; use diesel::sqlite::SqliteConnection; use dotenvy::dotenv; -use libpt::log::{error, info, warn}; +use libpt::log::error; pub fn establish_connection() -> anyhow::Result { dotenv()?; @@ -35,4 +32,3 @@ pub fn load_relevant_posts(conn: &mut SqliteConnection) -> anyhow::Result