ocboogie

Results 4 comments of ocboogie

I can reproduce it on Mac with ```rust use macroquad::prelude::*; #[macroquad::main("egui with macroquad")] async fn main() { loop { clear_background(WHITE); egui_macroquad::ui(|egui_ctx| { egui::Window::new("Issue #50").show(egui_ctx, |ui| { if ui.button("Click").clicked() { dbg!();...

For example, the following won't compile: ```rust use mockall::automock; use std::error::Error; #[derive(Clone, Debug)] struct MyStruct { some_field: i32, } #[automock] trait MyTrait { fn foo(&self) -> Result; } fn main()...

Yes, `MyStruct` implements `Clone` but `Result` doesn't. So, `return_const` won't work because it requires that its argument implements `Clone` and we're passing it `Result`. For example: ```rust use mockall::automock; use...

I'm surprised that I'm the first to run into this problem because returning `Result` is, of course, such a common pattern. And, error types typically don't Implement `Clone`. Also thanks...