Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Dec 27, 2024
1 parent b842ffd commit 09d4720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/file_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async fn update_file(
parquet_table_setter: WriteSignal<Option<ParquetTable>>,
) {
let object_store = &*INMEMORY_STORE;
let path = Path::parse(format!("{}", parquet_table.table_name)).unwrap();
let path = Path::parse(&parquet_table.table_name).unwrap();
let payload = PutPayload::from_bytes(parquet_table.bytes.clone());
object_store.put(&path, payload).await.unwrap();
parquet_table_setter.set(Some(parquet_table));
Expand Down
4 changes: 3 additions & 1 deletion src/query_results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ pub fn QueryResultView(result: QueryResult) -> impl IntoView {
</div>

<div class="font-mono text-sm overflow-x-auto relative group flex-grow mb-4">
<pre><code class="language-sql">{sql_clone}</code></pre>
<pre>
<code class="language-sql">{sql_clone}</code>
</pre>
</div>
</div>

Expand Down

0 comments on commit 09d4720

Please sign in to comment.