mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-22 02:34:20 +01:00
note: remove unnecessary derive macros from NoteAction
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -442,8 +442,8 @@ impl<'a, 'd> NoteView<'a, 'd> {
|
||||
|
||||
ui.add(&mut contents);
|
||||
|
||||
if let Some(action) = contents.action() {
|
||||
note_action = Some(action.clone());
|
||||
if let Some(action) = contents.action {
|
||||
note_action = Some(action);
|
||||
}
|
||||
|
||||
if self.options().has_actionbar() {
|
||||
@@ -506,8 +506,8 @@ impl<'a, 'd> NoteView<'a, 'd> {
|
||||
);
|
||||
ui.add(&mut contents);
|
||||
|
||||
if let Some(action) = contents.action() {
|
||||
note_action = Some(action.clone());
|
||||
if let Some(action) = contents.action {
|
||||
note_action = Some(action);
|
||||
}
|
||||
|
||||
if self.options().has_actionbar() {
|
||||
|
||||
Reference in New Issue
Block a user