From 160959d27f144c23631592185b5100a7b7f17ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 7 Sep 2018 22:19:12 +0200 Subject: [PATCH] add tests for #3057 and #2651 Fixes #3057 Fixes #2651 --- tests/ui/non_expressive_names.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/ui/non_expressive_names.rs b/tests/ui/non_expressive_names.rs index ce3dad391f3..e8b0021e301 100644 --- a/tests/ui/non_expressive_names.rs +++ b/tests/ui/non_expressive_names.rs @@ -164,3 +164,23 @@ impl Bar { let _1_ok= 1; } } + +// false positive similar_names (#3057, #2651) +// clippy claimed total_reg_src_size and total_size and +// numb_reg_src_checkouts and total_bin_size were similar +#[derive(Debug, Clone)] +pub(crate) struct DirSizes { + pub(crate) total_size: u64, + pub(crate) numb_bins: u64, + pub(crate) total_bin_size: u64, + pub(crate) total_reg_size: u64, + pub(crate) total_git_db_size: u64, + pub(crate) total_git_repos_bare_size: u64, + pub(crate) numb_git_repos_bare_repos: u64, + pub(crate) numb_git_checkouts: u64, + pub(crate) total_git_chk_size: u64, + pub(crate) total_reg_cache_size: u64, + pub(crate) total_reg_src_size: u64, + pub(crate) numb_reg_cache_entries: u64, + pub(crate) numb_reg_src_checkouts: u64, +}