diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 17:21:33 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 17:21:33 +0100 |
| commit | a0834356366ca27cd18db43632baa06b04094db2 (patch) | |
| tree | 8826092b2461b2c45a349d39a01391e956db5571 /crates/yt_dlp/src/info_json.rs | |
| parent | chore(treewide): Update licenses headers (diff) | |
| download | yt-a0834356366ca27cd18db43632baa06b04094db2.zip | |
chore(treewide): Format
Diffstat (limited to 'crates/yt_dlp/src/info_json.rs')
| -rw-r--r-- | crates/yt_dlp/src/info_json.rs | 4 |
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") |
