aboutsummaryrefslogtreecommitdiffstats
path: root/crates/yt_dlp
diff options
context:
space:
mode:
Diffstat (limited to 'crates/yt_dlp')
-rw-r--r--crates/yt_dlp/src/hooks.rs2
-rw-r--r--crates/yt_dlp/src/info_json.rs4
2 files changed, 4 insertions, 2 deletions
diff --git a/crates/yt_dlp/src/hooks.rs b/crates/yt_dlp/src/hooks.rs
index 4fc802b..343fd3f 100644
--- a/crates/yt_dlp/src/hooks.rs
+++ b/crates/yt_dlp/src/hooks.rs
@@ -58,6 +58,6 @@ macro_rules! wrap_hook {
}
pub mod __priv {
- pub use crate::info_json::{json_dumps, json_loads, filter_dict};
+ pub use crate::info_json::{filter_dict, json_dumps, json_loads};
pub use pyo3;
}
diff --git a/crates/yt_dlp/src/info_json.rs b/crates/yt_dlp/src/info_json.rs
index b19056d..b4c0d60 100644
--- a/crates/yt_dlp/src/info_json.rs
+++ b/crates/yt_dlp/src/info_json.rs
@@ -35,7 +35,9 @@ pub fn json_loads_any(input: serde_json::Value, py: Python<'_>) -> Bound<'_, PyA
#[must_use]
pub fn json_dumps_any(input: Bound<'_, PyAny>, py: Python<'_>) -> serde_json::Value {
let tmp_dict = PyDict::new(py);
- tmp_dict.set_item("tmp", input).expect("This should never throw an exception");
+ tmp_dict
+ .set_item("tmp", input)
+ .expect("This should never throw an exception");
let mut out = json_dumps(&tmp_dict);
out.remove("tmp").expect("was just assigned")