From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 5C9EE1FF28A for ; Wed, 10 Dec 2025 11:48:50 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DB4071859D; Wed, 10 Dec 2025 11:49:30 +0100 (CET) From: Dominik Csapak To: yew-devel@lists.proxmox.com Date: Wed, 10 Dec 2025 11:48:51 +0100 Message-ID: <20251210104856.1698157-5-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251210104856.1698157-1-d.csapak@proxmox.com> References: <20251210104856.1698157-1-d.csapak@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -2.471 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [graph.rs] URIBL_DBL_SPAM 5 Contains a spam URL listed in the Spamhaus DBL blocklist [graph.rs] Subject: [yew-devel] [PATCH yew-comp 1/1] rrd: replace TextRenderFn with new generic RenderFn X-BeenThere: yew-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Yew framework devel list at Proxmox List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Yew framework devel list at Proxmox Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: yew-devel-bounces@lists.proxmox.com Sender: "yew-devel" since RenderFn now has a generic return type, we can use that instead of TextRenderFn. Signed-off-by: Dominik Csapak --- src/rrd/graph.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rrd/graph.rs b/src/rrd/graph.rs index 689164b..66871cb 100644 --- a/src/rrd/graph.rs +++ b/src/rrd/graph.rs @@ -9,7 +9,7 @@ use yew::virtual_dom::{VComp, VNode}; use pwt::dom::align::{align_to, AlignOptions}; use pwt::dom::DomSizeObserver; use pwt::prelude::*; -use pwt::props::{IntoOptionalTextRenderFn, TextRenderFn}; +use pwt::props::{IntoOptionalRenderFn, RenderFn}; use pwt::state::optional_rc_ptr_eq; use pwt::widget::{Button, Container, Panel}; @@ -52,7 +52,7 @@ pub struct RRDGraph { pub binary: bool, #[prop_or_default] - pub render_value: Option>, + pub render_value: Option>, } impl RRDGraph { @@ -95,8 +95,8 @@ impl RRDGraph { self.class.push(class); } - pub fn render_value(mut self, renderer: impl IntoOptionalTextRenderFn) -> Self { - self.render_value = renderer.into_optional_text_render_fn(); + pub fn render_value(mut self, renderer: impl IntoOptionalRenderFn) -> Self { + self.render_value = renderer.into_optional_render_fn(); self } } -- 2.47.3 _______________________________________________ yew-devel mailing list yew-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel