second-state / wasm-learning

Building Rust functions for Node.js to take advantage of Rust's performance, WebAssembly's security and portability, and JavaScript's ease-of-use. Demo code and recipes.
https://www.secondstate.io/articles/getting-started-with-rust-function/
485 stars 102 forks source link

issue2 #19

Closed cymqqqq closed 3 years ago

cymqqqq commented 3 years ago

When I run "let rect = Rect::at(x1, y1).of_size((x2 - x1) as u32 , (y2 - y1) as u32);" errors comes: width must be strictly positive How can I fix it?

juntao commented 3 years ago

Hmm, which example are you referring to? Thanks.

On Tue, Jan 19, 2021 at 9:44 AM Jack Choi notifications@github.com wrote:

When I run "let rect = Rect::at(x1, y1).of_size((x2 - x1) as u32 , (y2 - y1) as u32);" errors comes: width must be strictly positive How can I fix it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/second-state/wasm-learning/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACUNSMGDA2L774BT4RYUDS2TPY5ANCNFSM4WIB2W5Q .

-- Michael Yuan, PhD Fast, safe, portable and serverless Rust programs on Node.js, or as a FaaS http://SecondState.io http://cloud.secondstate.io