Closed anti-social closed 2 years ago
Possibly we can go further:
#[cfg(feature="containers")]
use crate::{
builder::{
context::Context,
packages,
commands::generic::{run_command_at_env, capture_command},
},
};
I like the second option.
I think you can use indented block with cfg(feature
as an exception. But for non optional blocks, please, use one use
per line. It's easier to grep, copy and even read most of the time.
Also feel free to convert to 2021 right away. It should be much easier change after 2018.
Need for #555
As we have to refactor crate imports anyway to be able to use async feature. So which one do you prefer?
An old way:
or a compact one: