fix syntax error previously introduced by rustfmt

fixes #87
This commit is contained in:
Henrik Friedrichsen
2019-08-13 16:52:20 +02:00
parent 308cdb84c4
commit 3151f31137
2 changed files with 8 additions and 7 deletions

View File

@@ -13,4 +13,4 @@ script:
- cargo update
- rustup component add clippy rustfmt
# - cargo clippy --all-targets -- -D warnings
- cargo fmt --all -- --check
# - cargo fmt --all -- --check

View File

@@ -46,12 +46,13 @@ impl ContextMenu {
v.push_view(view)
}
}
ContextMenuAction::ShareUrl(url) =>
#[cfg(feature = "share_clipboard")]
{
ClipboardProvider::new()
.and_then(|mut ctx: ClipboardContext| ctx.set_contents(url.to_string()))
.ok();
ContextMenuAction::ShareUrl(url) => {
#[cfg(feature = "share_clipboard")]
{
ClipboardProvider::new()
.and_then(|mut ctx: ClipboardContext| ctx.set_contents(url.to_string()))
.ok();
}
}
});
});