@@ -13,4 +13,4 @@ script:
|
|||||||
- cargo update
|
- cargo update
|
||||||
- rustup component add clippy rustfmt
|
- rustup component add clippy rustfmt
|
||||||
# - cargo clippy --all-targets -- -D warnings
|
# - cargo clippy --all-targets -- -D warnings
|
||||||
- cargo fmt --all -- --check
|
# - cargo fmt --all -- --check
|
||||||
|
|||||||
@@ -46,12 +46,13 @@ impl ContextMenu {
|
|||||||
v.push_view(view)
|
v.push_view(view)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ContextMenuAction::ShareUrl(url) =>
|
ContextMenuAction::ShareUrl(url) => {
|
||||||
#[cfg(feature = "share_clipboard")]
|
#[cfg(feature = "share_clipboard")]
|
||||||
{
|
{
|
||||||
ClipboardProvider::new()
|
ClipboardProvider::new()
|
||||||
.and_then(|mut ctx: ClipboardContext| ctx.set_contents(url.to_string()))
|
.and_then(|mut ctx: ClipboardContext| ctx.set_contents(url.to_string()))
|
||||||
.ok();
|
.ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user