mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
eframe::Frame::info returns a reference (#3301)
* Get a reference to `IntegrationInfo` * Add doc comment * Change `info` to return a reference * Clone integration info * Remove `&` * Clone integration info in another place
This commit is contained in:
@@ -762,8 +762,8 @@ impl Frame {
|
||||
}
|
||||
|
||||
/// Information about the integration.
|
||||
pub fn info(&self) -> IntegrationInfo {
|
||||
self.info.clone()
|
||||
pub fn info(&self) -> &IntegrationInfo {
|
||||
&self.info
|
||||
}
|
||||
|
||||
/// A place where you can store custom data in a way that persists when you restart the app.
|
||||
|
||||
Reference in New Issue
Block a user