Skip to content

Commit

Permalink
style: fixing clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wllfaria committed Apr 22, 2024
1 parent eefc2a2 commit b3d82c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tui/src/components/api_explorer/sidebar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ impl<'a> SidebarState<'a> {

#[derive(Debug, Clone)]
pub struct RenderLine {
pub level: usize,
pub name: String,
pub _level: usize,
pub _name: String,
pub line: Paragraph<'static>,
}

Expand Down Expand Up @@ -120,8 +120,8 @@ fn build_lines(
let gap = " ".repeat(level * 2);
let chevron = if *is_expanded { "v" } else { ">" };
let line = vec![RenderLine {
level,
name: dir.name.clone(),
_level: level,
_name: dir.name.clone(),
line: Paragraph::new(format!(
"{}{} {}/",
gap,
Expand Down Expand Up @@ -171,8 +171,8 @@ fn build_lines(
.into();

vec![RenderLine {
level,
name: req.name.clone(),
_level: level,
_name: req.name.clone(),
line: Paragraph::new(line).set_style(req_style),
}]
}
Expand Down

0 comments on commit b3d82c7

Please sign in to comment.