Skip to content

Commit

Permalink
lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Jun 1, 2024
1 parent 0ef525d commit 06f3751
Showing 1 changed file with 5 additions and 187 deletions.
192 changes: 5 additions & 187 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,193 +1,11 @@
#![deny(
absolute_paths_not_starting_with_crate,
ambiguous_associated_items,
ambiguous_glob_imports,
ambiguous_glob_reexports,
ambiguous_wide_pointer_comparisons,
anonymous_parameters,
arithmetic_overflow,
array_into_iter,
asm_sub_register,
async_fn_in_trait,
bad_asm_style,
bindings_with_variant_name,
break_with_label_and_loop,
byte_slice_in_packed_struct_with_derive,
cenum_impl_drop_cast,
clashing_extern_declarations,
coherence_leak_check,
conflicting_repr_hints,
confusable_idents,
const_evaluatable_unchecked,
const_item_mutation,
const_patterns_without_partial_eq,
dead_code,
deprecated,
deprecated_cfg_attr_crate_type_name,
deprecated_in_future,
deprecated_where_clause_location,
deref_into_dyn_supertrait,
deref_nullptr,
drop_bounds,
dropping_copy_types,
dropping_references,
duplicate_macro_attributes,
dyn_drop,
elided_lifetimes_in_associated_constant,
ellipsis_inclusive_range_patterns,
enum_intrinsics_non_enums,
explicit_outlives_requirements,
exported_private_dependencies,
ffi_unwind_calls,
for_loops_over_fallibles,
forbidden_lint_groups,
forgetting_copy_types,
forgetting_references,
function_item_references,
hidden_glob_reexports,
ill_formed_attribute_input,
illegal_floating_point_literal_pattern,
improper_ctypes,
improper_ctypes_definitions,
incomplete_features,
incomplete_include,
indirect_structural_match,
ineffective_unstable_trait_impl,
inline_no_sanitize,
internal_features,
invalid_atomic_ordering,
invalid_doc_attributes,
invalid_from_utf8,
invalid_from_utf8_unchecked,
invalid_macro_export_arguments,
invalid_nan_comparisons,
invalid_reference_casting,
invalid_type_param_default,
invalid_value,
irrefutable_let_patterns,
future_incompatible,
keyword_idents,
large_assignments,
late_bound_lifetime_arguments,
legacy_derive_helpers,
let_underscore_drop,
let_underscore_lock,
long_running_const_eval,
macro_expanded_macro_exports_accessed_by_absolute_paths,
map_unit_fn,
meta_variable_misuse,
missing_abi,
missing_copy_implementations,
missing_docs,
missing_fragment_specifier,
mixed_script_confusables,
mutable_transmutes,
named_arguments_used_positionally,
named_asm_labels,
no_mangle_const_items,
no_mangle_generic_items,
non_ascii_idents,
non_camel_case_types,
non_fmt_panics,
non_shorthand_field_patterns,
non_snake_case,
non_upper_case_globals,
nontrivial_structural_match,
noop_method_call,
opaque_hidden_inferred_bound,
order_dependent_trait_objects,
overflowing_literals,
overlapping_range_endpoints,
path_statements,
patterns_in_fns_without_body,
pointer_structural_match,
private_bounds,
private_interfaces,
proc_macro_back_compat,
proc_macro_derive_resolution_fallback,
pub_use_of_private_extern_crate,
redundant_semicolons,
refining_impl_trait,
repr_transparent_external_private_fields,
rust_2021_incompatible_closure_captures,
rust_2021_incompatible_or_patterns,
rust_2021_prefixes_incompatible_syntax,
rust_2021_prelude_collisions,
semicolon_in_expressions_from_macros,
soft_unstable,
special_module_name,
stable_features,
static_mut_ref,
suspicious_auto_trait_impls,
suspicious_double_ref_op,
temporary_cstring_as_ptr,
text_direction_codepoint_in_comment,
text_direction_codepoint_in_literal,
trivial_bounds,
trivial_casts,
trivial_numeric_casts,
type_alias_bounds,
tyvar_behind_raw_pointer,
uncommon_codepoints,
unconditional_panic,
unconditional_recursion,
undefined_naked_function_abi,
undropped_manually_drops,
unexpected_cfgs,
ungated_async_fn_track_caller,
uninhabited_static,
unit_bindings,
unknown_crate_types,
unnameable_test_items,
unreachable_code,
unreachable_patterns,
unreachable_pub,
unsafe_code,
unsafe_op_in_unsafe_fn,
unstable_features,
unstable_name_collisions,
unstable_syntax_pre_expansion,
unsupported_calling_conventions,
unused_allocation,
unused_assignments,
unused_assignments,
unused_associated_type_bounds,
unused_attributes,
unused_braces,
unused_comparisons,
unused_crate_dependencies,
unused_doc_comments,
unused_extern_crates,
unused_features,
unused_import_braces,
unused_imports,
unused_labels,
unused_lifetimes,
unused_macro_rules,
unused_macros,
unused_must_use,
unused_mut,
unused_parens,
unused_qualifications,
unused_unsafe,
unused_variables,
useless_deprecated,
useless_ptr_null_checks,
where_clauses_object_safety,
while_true,
writes_through_immutable_pointer
)]
#![warn(macro_use_extern_crate, unknown_lints)]
#![allow(
bare_trait_objects,
box_pointers,
elided_lifetimes_in_paths,
missing_debug_implementations,
single_use_lifetimes,
unused_results,
variant_size_differences,
warnings,
renamed_and_removed_lints
let_underscore,
nonstandard_style,
unused
)]
#![warn(unknown_lints)]

//! # cliparser
//!
Expand Down

0 comments on commit 06f3751

Please sign in to comment.