Skip to content

Commit

Permalink
clippy: disable some warnings due to leptos bug #1825
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 2, 2023
1 parent bf90433 commit 11dacbd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/flake.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//! UI for /flake segment of the app

// https://github.com/leptos-rs/leptos/issues/1825
#![allow(clippy::needless_lifetimes)]

use std::collections::BTreeMap;

use leptos::*;
Expand Down Expand Up @@ -206,7 +209,7 @@ fn FlakeValView<'a>(k: &'a String, v: &'a Val) -> impl IntoView {
/// WARNING: This may cause performance problems if the tree is large.
#[component]
fn FlakeOutputsRawView<'a>(outs: &'a FlakeOutputs) -> impl IntoView {
fn view_val<'b>(val: &'b Val) -> View {
fn view_val(val: &Val) -> View {
view! {
<span>
<b>{val.name.clone()}</b>
Expand Down
3 changes: 3 additions & 0 deletions src/app/info.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//! Nix info UI

// https://github.com/leptos-rs/leptos/issues/1825
#![allow(clippy::needless_lifetimes)]

use std::fmt::Display;

use leptos::*;
Expand Down

0 comments on commit 11dacbd

Please sign in to comment.