This commit is contained in:
Antonio Scandurra 2022-05-26 11:17:10 +02:00
parent 580f1a4125
commit a5044ccbba
2 changed files with 56 additions and 39 deletions

View file

@ -13,9 +13,9 @@ pub enum ContextMenuItem {
}
impl ContextMenuItem {
pub fn item(label: String, action: impl 'static + Action) -> Self {
pub fn item(label: impl ToString, action: impl 'static + Action) -> Self {
Self::Item {
label,
label: label.to_string(),
action: Box::new(action),
}
}