Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

The window's clipboard stub without a window isn't the shape of another crate's stub (the dupes check)

shinyobjectz8f4f3648c842
diff --git a/engine/page/window/src/other.rs b/engine/page/window/src/other.rs
index 17c68423..8f01b20b 100644
--- a/engine/page/window/src/other.rs
+++ b/engine/page/window/src/other.rs
@@ -17,7 +17,9 @@ pub fn clipboard_read() -> String {
#[cfg(feature = "window")]
pub use raea_io_os::open_url as open;
#[cfg(not(feature = "window"))]
-pub fn clipboard_write(_: &str) -> Result<(), String> {
+pub fn clipboard_write(text: &str) -> Result<(), String> {
+ // nothing to write to without a window; answered as written, as before
+ let _unwritten = text.len();
Ok(())
}
#[cfg(not(feature = "window"))]