Skip to content

Commit 2552bfc

Browse files
deepsource fix
1 parent b91bbab commit 2552bfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/prism/home/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ async fn get_stream_metadata(
258258
let dataset_format = stream_jsons[0]
259259
.log_source
260260
.first()
261-
.unwrap_or(&LogSourceEntry::default())
261+
.cloned()
262+
.unwrap_or_else(LogSourceEntry::default)
262263
.log_source_format
263264
.clone();
264265

0 commit comments

Comments
 (0)