Alan Somers

Results 656 comments of Alan Somers

`fn baz(&self, _f: &impl Foo)` and `fn baz(&self, _f: &dyn Foo)` aren't the same thing. The former is an alternate syntax for `fn baz(&self, _f: &F)`. A generic function, in...

I forgot to mention one other option: `#[concretize]`. This is a new feature currently available only in Mockall's master branch from git. It's not in any release yet. But it...

> perfect, that's exactly what I was looking for. Will it also work for `&impl Foo`? I'm not sure. The `&impl Foo` syntax is uncommon, and offers no advantages over...

I'm going to release it later today. BTW, RPITIT looks very useful, and Mockall might have some additional work to do to support that.

You already answered your first question: convert the `&impl T` syntax into the generic function syntax. The compiler failure is different. It's probably a Mockall bug. I would appreciate it...

You're right; you can't. `mock!` is designed to allow as closely as possible copy/pasting the original struct's definition. That's why it prefixes the "Mock". Do you have a good suggestion...

Are you talking about some kind of transitive dependency? Can you provide an example that demonstrates your problem?

And what change are you looking for? Can you show an example of how you would like to use this new feature?

Well, nobody will ever use libcasper without using capsicum. There are, however, plenty of use cases for capsicum that don't require libcasper. But shorn of its services, libcasper is pretty...

Correct. Capsicum is FreeBSD only. There was a Linux port, but I don't think it's complete or currently maintained.