[clippy] A few fixes in module/src/module.rs;
[clippy] A few fixes in module/src/module.rs;

- use Self more to indicate the current type;
- explicitly clone one Option;
- invert !is_none to is_some;

stoklund/cretonne,stoklund/cretonne,stoklund/cretonne