This commit is contained in:
Jonas Kruckenberg 2022-11-16 13:30:08 +01:00
parent 7820a409bf
commit 3e69eed22f
7 changed files with 51 additions and 21 deletions

View file

@ -24,8 +24,6 @@ pub async fn read_text() -> crate::Result<String> {
/// write_text("Tauri is awesome!").await;
/// assert_eq!(read_text().await, "Tauri is awesome!");
/// ```
///
/// @returns A promise indicating the success or failure of the operation.
#[inline(always)]
pub async fn write_text(text: &str) -> crate::Result<()> {
Ok(inner::writeText(text).await?)