Skip to content

Commit

Permalink
codegen: Drop useless any on a single feature
Browse files Browse the repository at this point in the history
any was used at the time we had the dox feature. Nowadays it is only a single feature so the usage of any is useless
  • Loading branch information
bilelmoussaoui committed Apr 15, 2023
1 parent 6a0603f commit c8aeb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ pub fn cfg_condition_string_no_doc(
) -> Option<String> {
cfg_condition.map(|cfg| {
let comment = if commented { "//" } else { "" };
format!("{0}{1}#[cfg(any({2}))]", tabs(indent), comment, cfg)
format!("{0}{1}#[cfg({2})]", tabs(indent), comment, cfg)
})
}

Expand Down

0 comments on commit c8aeb47

Please sign in to comment.