We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 031f349 commit e67b44aCopy full SHA for e67b44a
egui/src/context_menu.rs
@@ -172,6 +172,7 @@ pub struct SubMenu {
172
text: String,
173
}
174
impl SubMenu {
175
+ #[allow(clippy::needless_pass_by_value)]
176
pub fn new(text: impl ToString) -> Self {
177
Self {
178
text: text.to_string(),
egui/src/response.rs
@@ -453,7 +453,7 @@ impl Response {
453
454
455
pub fn context_menu(&self, add_contents: impl FnOnce(&mut Ui, &mut super::context_menu::MenuState)) -> &Self {
456
- self.ctx.show_context_menu(&self, add_contents);
+ self.ctx.show_context_menu(self, add_contents);
457
self
458
459
0 commit comments