Skip to content

Commit 055b5eb

Browse files
author
mikerite
authored
Merge pull request #3149 from matthiaskrgr/test_3075
add tests for #3057.
2 parents fdd830f + 160959d commit 055b5eb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/ui/non_expressive_names.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,23 @@ impl Bar {
164164
let _1_ok= 1;
165165
}
166166
}
167+
168+
// false positive similar_names (#3057, #2651)
169+
// clippy claimed total_reg_src_size and total_size and
170+
// numb_reg_src_checkouts and total_bin_size were similar
171+
#[derive(Debug, Clone)]
172+
pub(crate) struct DirSizes {
173+
pub(crate) total_size: u64,
174+
pub(crate) numb_bins: u64,
175+
pub(crate) total_bin_size: u64,
176+
pub(crate) total_reg_size: u64,
177+
pub(crate) total_git_db_size: u64,
178+
pub(crate) total_git_repos_bare_size: u64,
179+
pub(crate) numb_git_repos_bare_repos: u64,
180+
pub(crate) numb_git_checkouts: u64,
181+
pub(crate) total_git_chk_size: u64,
182+
pub(crate) total_reg_cache_size: u64,
183+
pub(crate) total_reg_src_size: u64,
184+
pub(crate) numb_reg_cache_entries: u64,
185+
pub(crate) numb_reg_src_checkouts: u64,
186+
}

0 commit comments

Comments
 (0)