In the build derive macro, 04-call-builder, the build function takes a &mut self, and it returns a Command with the ownership of the fields. So I have to clone the fields in the implementation, which is not correct I suppose.
The build function should take the ownership of Builder, and return a builded result.
In the build derive macro,
04-call-builder
, thebuild
function takes a&mut self
, and it returns aCommand
with the ownership of the fields. So I have toclone
the fields in the implementation, which is not correct I suppose.The build function should take the ownership of Builder, and return a builded result.
like this: