aboutsummaryrefslogtreecommitdiffstats
path: root/crates/yt_dlp/src/info_json.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/yt_dlp/src/info_json.rs')
-rw-r--r--crates/yt_dlp/src/info_json.rs4
1 files changed, 3 insertions, 1 deletions
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")