This removes unnecessary clone calls and makes Job a reference through the middleware interface. It might make sense to have args: JsonValue be a reference as well. The reason I'm not sure yet is that clone is required to call serde_json::from_value but not all jobs take arguments.
This removes unnecessary clone calls and makes
Job
a reference through the middleware interface. It might make sense to haveargs: JsonValue
be a reference as well. The reason I'm not sure yet is that clone is required to callserde_json::from_value
but not all jobs take arguments.