mkutils 0.1.148

Utility methods, traits, and types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(feature = "async")]

use anyhow::Error as AnyhowError;
use mkutils::Utils;

#[tokio::test]
async fn test_copy() -> Result<(), AnyhowError> {
    let string = "hello world";

    string.write_to_clipboard().await?;

    let clipboard_string = String::read_from_clipboard().await?;

    assert_eq!(string, clipboard_string);

    ().ok()
}