From 9a71b40e36b6c39f8c0c1e3966cd131e24616d6e Mon Sep 17 00:00:00 2001 From: Barugon Date: Mon, 4 Sep 2023 15:15:04 -0700 Subject: [PATCH] Change `info` to return a reference --- crates/eframe/src/epi/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/eframe/src/epi/mod.rs b/crates/eframe/src/epi/mod.rs index 9f4237713fd..f1d6f07b60f 100644 --- a/crates/eframe/src/epi/mod.rs +++ b/crates/eframe/src/epi/mod.rs @@ -770,12 +770,7 @@ impl Frame { } /// Information about the integration. - pub fn info(&self) -> IntegrationInfo { - self.info.clone() - } - - /// Get `IntegrationInfo` as a reference. - pub fn info_ref(&self) -> &IntegrationInfo { + pub fn info(&self) -> &IntegrationInfo { &self.info }