habitat
habitat copied to clipboard
address easy warnings in service.rs of component/sup
Signed-off-by: Jason Heath [email protected]
Deploy Preview for chef-habitat processing.
Name | Link |
---|---|
Latest commit | 74f78226d895bd4d260bd52df435211e8ef2b7c9 |
Latest deploy log | https://app.netlify.com/sites/chef-habitat/deploys/632b6fb528cbd9000a4eeb79 |
What is the warning this is addressing? Looks like it is likely not valid based on the pipeline failures.
What is the warning this is addressing? Looks like it is likely not valid based on the pipeline failures.
Capturing offline discussion here. This file was triggering warn(dead_code) on a use stmt and a function. Both are used in an async block so my suspicion is that the async was throwing the linter off. Change is ultimately to #[allow(dead_code)] and #[allow(unused_import)] with comments as to why. Build failed the first time around because the "use crate::test_helpers::*" couldn't be removed as it was being used async.