Skip to content

Commit

Permalink
Change info to return a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Barugon committed Sep 4, 2023
1 parent a557aa0 commit 9a71b40
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/eframe/src/epi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9a71b40

Please sign in to comment.