useanyhow::Context;/// Write text to the system clipboard.
pubfnset_text(text:&str)->anyhow::Result<()>{letmut clipboard =arboard::Clipboard::new().context("Failed to open system clipboard")?;
clipboard
.set_text(text).context("Failed to write to clipboard")?;Ok(())}