aboutsummaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-16 14:07:50 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-16 14:07:50 +0200
commit10b07fa5a4f4080ef5417720b2d15179b72d2fc2 (patch)
tree091ab713c9883c7e4b4c02a78c60b79d6e799e56 /crates
parentchore(treewide): Add missing copyright headers (diff)
downloadyt-10b07fa5a4f4080ef5417720b2d15179b72d2fc2.zip
style(treewide): Reformat
Diffstat (limited to '')
-rw-r--r--crates/libmpv2/CHANGELOG.md8
-rw-r--r--crates/yt/src/main.rs4
-rw-r--r--crates/yt/src/select/cmds/mod.rs4
-rw-r--r--crates/yt/src/status/mod.rs3
-rw-r--r--crates/yt_dlp/Cargo.toml8
-rw-r--r--crates/yt_dlp/README.md2
6 files changed, 18 insertions, 11 deletions
diff --git a/crates/libmpv2/CHANGELOG.md b/crates/libmpv2/CHANGELOG.md
index dc6f861..a3d14d7 100644
--- a/crates/libmpv2/CHANGELOG.md
+++ b/crates/libmpv2/CHANGELOG.md
@@ -16,7 +16,7 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
## Version 3.0.0
-- \[breaking\] Support libmpv version 2.0 (mpv version 0.35.0). Mpv versions \<=
+- [breaking] Support libmpv version 2.0 (mpv version 0.35.0). Mpv versions \<=
0.34.0 will no longer be supported.
- Add OpenGL rendering
@@ -29,10 +29,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
## Version 2.0.0
- Add method `Mpv::with_initializer` to set options before initialization
-- \[breaking\] Borrow `&mut self` in `wait_event` to disallow using two events
+- [breaking] Borrow `&mut self` in `wait_event` to disallow using two events
where the first points to data freed in the second `wait_event` call
-- \[breaking\] `PropertyData<'_>` is no longer `Clone` or `PartialEq`,
- `Event<'_>` is no longer `Clone` to avoid cloning/comparing `MpvNode`
+- [breaking] `PropertyData<'_>` is no longer `Clone` or `PartialEq`, `Event<'_>`
+ is no longer `Clone` to avoid cloning/comparing `MpvNode`
## Version 1.1.0
diff --git a/crates/yt/src/main.rs b/crates/yt/src/main.rs
index b6a7d29..744fe5f 100644
--- a/crates/yt/src/main.rs
+++ b/crates/yt/src/main.rs
@@ -122,9 +122,7 @@ async fn main() -> Result<()> {
done,
sort_key,
sort_mode,
- } => {
- Box::pin(select::select_split(&app, done, sort_key, sort_mode)).await?
- }
+ } => Box::pin(select::select_split(&app, done, sort_key, sort_mode)).await?,
_ => Box::pin(handle_select_cmd(&app, cmd, None)).await?,
}
}
diff --git a/crates/yt/src/select/cmds/mod.rs b/crates/yt/src/select/cmds/mod.rs
index f97b04b..9da795a 100644
--- a/crates/yt/src/select/cmds/mod.rs
+++ b/crates/yt/src/select/cmds/mod.rs
@@ -76,7 +76,9 @@ pub async fn handle_select_cmd(
firefox.arg(url.as_str());
let _handle = firefox.spawn().context("Failed to run firefox")?;
}
- SelectCommand::File { .. } | SelectCommand::Split { .. } => unreachable!("This should have been filtered out"),
+ SelectCommand::File { .. } | SelectCommand::Split { .. } => {
+ unreachable!("This should have been filtered out")
+ }
}
Ok(())
}
diff --git a/crates/yt/src/status/mod.rs b/crates/yt/src/status/mod.rs
index 18bef7d..6883802 100644
--- a/crates/yt/src/status/mod.rs
+++ b/crates/yt/src/status/mod.rs
@@ -92,7 +92,8 @@ pub async fn show(app: &App) -> Result<()> {
f64::from(u32::try_from(input).expect("This should never exceed u32::MAX"))
}
- let count = to_f64(watched_videos_len) / (to_f64(drop_videos_len) + to_f64(dropped_videos_len));
+ let count =
+ to_f64(watched_videos_len) / (to_f64(drop_videos_len) + to_f64(dropped_videos_len));
count * 100.0
};
diff --git a/crates/yt_dlp/Cargo.toml b/crates/yt_dlp/Cargo.toml
index e5d14fd..81e1412 100644
--- a/crates/yt_dlp/Cargo.toml
+++ b/crates/yt_dlp/Cargo.toml
@@ -25,7 +25,13 @@ publish = true
indexmap = { version = "2.9.0", default-features = false }
log.workspace = true
reqwest = { version = "0.12.20", features = ["blocking", "json"] }
-rustpython = { git = "https://github.com/RustPython/RustPython.git", features = ["threading", "stdlib", "stdio", "importlib", "ssl"], default-features = false }
+rustpython = { git = "https://github.com/RustPython/RustPython.git", features = [
+ "threading",
+ "stdlib",
+ "stdio",
+ "importlib",
+ "ssl",
+], default-features = false }
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
thiserror = "2.0.12"
diff --git a/crates/yt_dlp/README.md b/crates/yt_dlp/README.md
index 591ef2e..ece8540 100644
--- a/crates/yt_dlp/README.md
+++ b/crates/yt_dlp/README.md
@@ -12,7 +12,7 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
# Yt_py
-> \[can be empty\]
+> [can be empty]
Some text about the project.