Sign in
fuchsia
/
third_party
/
github.com
/
alacritty
/
alacritty
/
6301775d3f60cccee5076ba33fec825ee42d794d
/
.
/
copypasta
/
examples
/
hello_world.rs
blob: 7d637f82000e620bddcec867cfdc94b9933e34c5 [
file
] [
log
] [
blame
]
extern
crate copypasta
;
use
copypasta
::
ClipboardContext
;
use
copypasta
::
ClipboardProvider
;
fn
main
()
{
let
mut
ctx
=
ClipboardContext
::
new
().
unwrap
();
let
the_string
=
"Hello, world!"
;
ctx
.
set_contents
(
the_string
.
to_owned
()).
unwrap
();
}