|
65 | 65 | clippy::implicit_return, |
66 | 66 | clippy::indexing_slicing, |
67 | 67 | clippy::map_err_ignore, |
| 68 | + clippy::min_ident_chars, |
68 | 69 | clippy::missing_docs_in_private_items, |
69 | 70 | clippy::missing_trait_methods, |
70 | 71 | clippy::mod_module_files, |
71 | 72 | clippy::module_name_repetitions, |
| 73 | + clippy::needless_raw_strings, |
72 | 74 | clippy::new_without_default, |
73 | 75 | clippy::non_ascii_literal, |
74 | 76 | clippy::option_if_let_else, |
| 77 | + clippy::pattern_type_mismatch, |
75 | 78 | clippy::pub_use, |
| 79 | + clippy::pub_with_shorthand, |
76 | 80 | clippy::question_mark_used, |
| 81 | + clippy::redundant_closure_call, |
77 | 82 | clippy::redundant_pub_crate, |
78 | 83 | clippy::ref_patterns, |
| 84 | + clippy::single_call_fn, |
79 | 85 | clippy::std_instead_of_alloc, |
80 | 86 | clippy::std_instead_of_core, |
81 | 87 | clippy::tabs_in_doc_comments, |
|
110 | 116 | ) |
111 | 117 | )] |
112 | 118 | // allowable upcoming nightly lints |
113 | | -#![cfg_attr( |
114 | | - include_nightly_lints, |
115 | | - allow( |
116 | | - clippy::absolute_paths, |
117 | | - clippy::arc_with_non_send_sync, |
118 | | - clippy::min_ident_chars, |
119 | | - clippy::needless_raw_strings, |
120 | | - clippy::pub_with_shorthand, |
121 | | - clippy::redundant_closure_call, |
122 | | - clippy::single_call_fn |
123 | | - ) |
124 | | -)] |
| 119 | +#![cfg_attr(include_nightly_lints, allow(clippy::absolute_paths, clippy::arc_with_non_send_sync))] |
125 | 120 | // LINT-REPLACE-END |
126 | 121 | #![allow(missing_docs, rustdoc::missing_crate_level_docs)] |
127 | 122 |
|
128 | | -use std::env::args_os; |
| 123 | +use std::{env, process}; |
129 | 124 |
|
130 | 125 | // TODO use the termination trait once rust-lang/rust#43301 is stable |
131 | 126 | #[allow(clippy::exit, clippy::print_stderr)] |
132 | 127 | #[cfg(not(tarpaulin_include))] |
133 | 128 | fn main() { |
134 | | - let exit = core::run(args_os().skip(1).collect()); |
| 129 | + let exit = core::run(env::args_os().skip(1).collect()); |
135 | 130 | if let Some(message) = exit.get_message().as_ref() { |
136 | 131 | eprintln!("{message}"); |
137 | 132 | } |
138 | | - std::process::exit(exit.get_status().to_code()); |
| 133 | + process::exit(exit.get_status().to_code()); |
139 | 134 | } |
0 commit comments