Skip to content

Commit

Permalink
fix: mistake in macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Sep 21, 2024
1 parent 2570c6f commit 111ef5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions iced_examples/counter_muti/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ use std::collections::HashMap;
use iced::widget::{button, column, container, row, text, text_input};
use iced::window::Id;
use iced::{event, Alignment, Element, Event, Length, Task as Command, Theme};
use iced_layershell::actions::{
IcedNewMenuSettings, LayershellCustomActionsWithInfo, MenuDirection,
};
use iced_layershell::actions::{IcedNewMenuSettings, MenuDirection};
use iced_runtime::window::Action as WindowAction;
use iced_runtime::{task, Action};

Expand Down
2 changes: 1 addition & 1 deletion iced_layershell_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub fn to_layer_message(attr: TokenStream, input: TokenStream) -> TokenStream {

fn try_into(self) -> Result<iced_layershell::actions::LayershellCustomActionsWithIdAndInfo<#info>, Self::Error> {
type InnerLayerActionId = iced_layershell::actions::LayershellCustomActionsWithIdAndInfo<#info>;
type InnerLayerAction = LayershellCustomActionsWithInfo<#info>;
type InnerLayerAction = iced_layershell::actions::LayershellCustomActionsWithInfo<#info>;
match self {
Self::AnchorChange{id, anchor} => {
Ok(InnerLayerActionId::new(Some(id), InnerLayerAction::AnchorChange(anchor)))
Expand Down

0 comments on commit 111ef5f

Please sign in to comment.