about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 14:01:48 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 14:01:48 +0200
commit4c8a71e3fc2e0d9c30e47241d3740c49c834d3fa (patch)
tree8a4f086cdd222345b31fda130c12537615c29121
parentfix(cli): Always log with a verbosity of at least WARN (diff)
downloadyt-4c8a71e3fc2e0d9c30e47241d3740c49c834d3fa.tar.gz
yt-4c8a71e3fc2e0d9c30e47241d3740c49c834d3fa.zip
style(treewide): Format
-rw-r--r--crates/yt_dlp/Cargo.toml2
-rw-r--r--src/config/file_system.rs2
-rw-r--r--src/storage/video_database/setters.rs5
-rw-r--r--src/update/mod.rs2
4 files changed, 4 insertions, 7 deletions
diff --git a/crates/yt_dlp/Cargo.toml b/crates/yt_dlp/Cargo.toml
index 7af29d7..39a29aa 100644
--- a/crates/yt_dlp/Cargo.toml
+++ b/crates/yt_dlp/Cargo.toml
@@ -22,4 +22,4 @@ pyo3 = { version = "0.21.2", features = ["auto-initialize", "gil-refs"] }
 serde = { version = "1.0.203", features = ["derive"] }
 serde_json = "1.0.117"
 url = { version = "2.5.0", features = ["serde"] }
-bytes = {path = "../bytes"}
+bytes = { path = "../bytes" }
diff --git a/src/config/file_system.rs b/src/config/file_system.rs
index 8528130..b89c1fe 100644
--- a/src/config/file_system.rs
+++ b/src/config/file_system.rs
@@ -18,8 +18,8 @@ use super::{
 use std::{fs::read_to_string, path::PathBuf};
 
 use anyhow::{Context, Result};
-use toml::Table;
 use bytes::Bytes;
+use toml::Table;
 
 macro_rules! get {
     ($default:path, $config:expr, $get_fn:ident, $key_one:expr, $($keys:expr),*) => {
diff --git a/src/storage/video_database/setters.rs b/src/storage/video_database/setters.rs
index 76a36a7..fcafcd4 100644
--- a/src/storage/video_database/setters.rs
+++ b/src/storage/video_database/setters.rs
@@ -16,10 +16,7 @@ use log::debug;
 use sqlx::query;
 use tokio::fs;
 
-use crate::{
-    app::App,
-    storage::video_database::extractor_hash::ExtractorHash,
-};
+use crate::{app::App, storage::video_database::extractor_hash::ExtractorHash};
 
 use super::{Video, VideoOptions, VideoStatus};
 
diff --git a/src/update/mod.rs b/src/update/mod.rs
index c913195..0e47321 100644
--- a/src/update/mod.rs
+++ b/src/update/mod.rs
@@ -12,7 +12,7 @@ use std::{collections::HashMap, process::Stdio, str::FromStr};
 
 use anyhow::{Context, Ok, Result};
 use chrono::{DateTime, Utc};
-use log::{debug, error, info, warn};
+use log::{error, info, warn};
 use tokio::{
     io::{AsyncBufReadExt, BufReader},
     process::Command,