Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Dec 14, 2024
1 parent 503387d commit fbf300b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn ArrayView(file_name: String, history_stack: Signal<VecDeque<SharedArrayDa

div { class: "my-12 h-0.5 border-t-0 bg-neutral-100/30" }

if array.inner.children().len() > 0 {
if !array.inner.children().is_empty() {
ArrayChildren { history_stack }
}
}
Expand Down
10 changes: 4 additions & 6 deletions src/components/array_info/chunked.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use dioxus::prelude::*;
use vortex::array::ChunkedArray;

pub fn ChunkedArrayInfo(chunked_array: ChunkedArray) -> Element {
rsx! {}
}
// #[component]
// pub fn ChunkedArrayInfo(chunked_array: ChunkedArray) -> Element {
// rsx! {}
// }
3 changes: 3 additions & 0 deletions src/components/table.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused)]

use dioxus::prelude::*;

// TODO(aduffy): Convert all of our tables to types in here instead.
Expand Down Expand Up @@ -47,6 +49,7 @@ pub struct TableCellProps {
}

/// Let's create a few of these cell values instead.
#[component]
pub fn TableCell(props: TableCellProps) -> Element {
let font_family = match props.font_family {
FontStyle::Inherit => "",
Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::sync::Arc;

use bytes::Bytes;
use components::{array::ArrayView, AppHeader, ErrorMessage};
use dioxus::logger::tracing;
use dioxus::prelude::*;
use dioxus_elements::FileEngine;
use vortex::{
Expand Down Expand Up @@ -37,11 +36,11 @@ fn App() -> Element {
#[component]
fn Home() -> Element {
// Create a file reader.
let mut file_name = use_signal(|| String::new());
let mut file_name = use_signal(String::new);
let mut read_error = use_signal::<Option<String>>(|| None);

// Push the latest history for each of these elements.
let mut history_stack: Signal<VecDeque<SharedArrayData>> = use_signal(|| VecDeque::new());
let mut history_stack: Signal<VecDeque<SharedArrayData>> = use_signal(VecDeque::new);

let read_files = move |file_engine: Arc<dyn FileEngine>| async move {
file_name.set(file_engine.files()[0].clone());
Expand Down

0 comments on commit fbf300b

Please sign in to comment.