Public report — windows-rs, published 29 Sep 2026. Concrete security findings (which rule fired, in which file, on which line; CVE IDs, secret matches, dependency versions) are REDACTED in this version; ask the repo owner for the full report.
Public
Codebase survey Measured under the Code Assurance Index · rubric rubric-2026.09.17 (frozen) · verify this survey Filed cd_8ef3feb47db1467fb3444a74d6046c75 Filed 29 September 2026, 01:18 UTC Public

Microsoft/windows-Rs

Measured 29 September 2026, 00:50 UTC

49% Adequate
CriticalWeakAdequateStrongExemplary

Very large · 1,908,318 LoC · 47 projects · rebuild ~10.7 person-years · weakest lens: Readiness (40%)

Findings by grade

98 critical 3109 serious 9 minor 6 could not be resolved — could be critical — see Limitations

This survey was produced by

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
29 September 2026, 00:50 UTC

A measurement, not a certificate. The Code Assurance Index does not certify, approve or guarantee this codebase; it records a reproducible number and the evidence it was computed from. The standard is authored by Canine Development, who also build Watchdog — its only implementation today. That is said here so the number is checked rather than believed.

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

55/60dimensions tool-verifieddeterministic · confidence 1.0 · 5 LLM-assisted, advisory
3192findings with an exact file:lineof 3216 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
60/117dimensions across the health lenses1908318 LoC · 47 projects — wide & deep
Chapters

Executive summary

Preview (pre-1.0). This repo hasn't declared a stable release, so it's judged against a relaxed, pre-production bar.

The platform is a massive, high-value asset with a 49% overall health score, indicating a system that is structurally sound but operationally fragile. With nearly two million lines of production code, the organization has invested roughly ten point seven person-years and an estimated one point six million euros in its creation. This scale means that any instability or security lapse carries significant financial and reputational weight, making the current state a workable system carrying real risk rather than a healthy, resilient foundation.

The most critical vulnerability lies in Operational Readiness, which scored only forty percent. For a system of this magnitude, low readiness translates directly to higher costs of ownership and increased exposure to prolonged outages. The lack of measured test coverage and unreliable test results means the team cannot confidently verify changes, leading to a high probability of defects slipping into production. This uncertainty forces engineers to spend more time on manual verification and incident response, slowing down delivery and increasing the cost of every release.

A secondary concern is the Velocity Tax imposed by code complexity. While the architecture is strong, the code quality averages a moderate six point six out of ten. This level of complexity acts as a hidden tax on every change, plausibly increasing effort by four to eight percent in weaker areas. As the codebase grows, this tax compounds, making routine maintenance and feature development slower and more expensive than necessary. It is not a critical failure, but it is a persistent drag on engineering efficiency that erodes margins over time.

Despite these risks, the system benefits from a strong architectural foundation and high code health, suggesting that the core logic is well-structured and maintainable. The primary security exposure involves fifty-two leaked secrets, which must be addressed immediately to prevent unauthorized access. However, the highest-leverage action is to implement a diagnostic trail for user-facing errors. By capturing detailed logs for discarded errors, the team can drastically reduce the time spent reproducing and fixing bugs, turning a major pain point into a manageable operational process. This single change offers the best return on effort, improving both customer experience and internal efficiency without requiring a massive refactor.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 40% · 47% weightSecurity 40% · 26% weightMaturity 56% · 14% weightCode Health 90% · 8% weightArchitecture 99% · 4% weight

Raise Readiness 40 → 70 (the Healthy floor) ⇒ headline 49 → ~55.

Code composition — where the lines go
Plumbing 0%Tests 100%
New since the last scan (100+)

281 finding(s) are new versus the previous scan (2026-09-12) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D1 · Snapshot::plan (cyclomatic 181) crates/libs/clang/src/lib.rs
  • D1 · windows_clang::choose_type_root_cached (cyclomatic 46) crates/libs/clang/src/lib.rs
  • D1 · windows_clang::extract::extract_child (cyclomatic 41) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::type_ref (cyclomatic 33) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::recover_midl_artifacts (cyclomatic 32) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::fact_data (cyclomatic 30) crates/libs/clang/src/extract.rs
  • D1 · Type::remap (cyclomatic 28) crates/libs/bindgen/src/types/mod.rs
  • D1 · Reader::from_index (cyclomatic 26) crates/libs/bindgen/src/winmd/reader.rs
  • D1 · Snapshot::emit_items (cyclomatic 26) crates/libs/clang/src/lib.rs
  • D1 · windows_clang::record_layout (cyclomatic 24) crates/libs/clang/src/lib.rs
  • D1 · windows_clang::extract::evaluate_constants (cyclomatic 23) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::interface_fact (cyclomatic 23) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::choose_type_root_cached::resolved_type_shape::write (cyclomatic 22) crates/libs/clang/src/lib.rs
  • D1 · ComponentLoop::live_controlled_feedback_native_finish (cyclomatic 22) crates/libs/reactor/src/app/mod.rs
  • D1 · windows_clang::extract::parameter_annotation (cyclomatic 21) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::decode_c_string (cyclomatic 20) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::decode_c_bytes (cyclomatic 20) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::apply_source_annotations (cyclomatic 19) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::extract::inline_record (cyclomatic 18) crates/libs/clang/src/extract.rs
  • D1 · windows_clang::param_attributes (cyclomatic 17) crates/libs/clang/src/lib.rs
  • D1 · windows_clang::extract::evaluate_parsed_probe (cyclomatic 17) crates/libs/clang/src/extract.rs
  • D1 · App::run_host (cyclomatic 17) crates/libs/reactor/src/app/mod.rs
  • D1 · windows_clang::validate_complete_layout (cyclomatic 16) crates/libs/clang/src/lib.rs
  • D2 · Snapshot::plan (cognitive 294) crates/libs/clang/src/lib.rs
  • D2 · windows_clang::extract::extract_child (cognitive 73) crates/libs/clang/src/extract.rs
  • D2 · Reader::from_index (cognitive 58) crates/libs/bindgen/src/winmd/reader.rs
  • D2 · windows_clang::choose_type_root_cached (cognitive 56) crates/libs/clang/src/lib.rs
  • D2 · windows_clang::extract::type_ref (cognitive 51) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::record_layout (cognitive 49) crates/libs/clang/src/lib.rs
  • D2 · windows_clang::extract::fact_data (cognitive 47) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::extract::recover_midl_artifacts (cognitive 46) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::extract::inline_record (cognitive 43) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::extract::evaluate_parsed_probe (cognitive 36) crates/libs/clang/src/extract.rs
  • D2 · Snapshot::emit_items (cognitive 32) crates/libs/clang/src/lib.rs
  • D2 · windows_clang::extract::evaluate_constants (cognitive 31) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::write_record_fields (cognitive 29) crates/libs/clang/src/lib.rs
  • D2 · windows_clang::extract::interface_fact (cognitive 28) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::extract::parameter_annotation (cognitive 27) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::extract::callable_params (cognitive 26) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::choose_type_root_cached::resolved_type_shape::write (cognitive 24) crates/libs/clang/src/lib.rs
  • D2 · App::run_host (cognitive 24) crates/libs/reactor/src/app/mod.rs
  • D2 · tool_reactor::schema::resolve_slot_item_controls (cognitive 24) crates/tools/reactor/src/schema.rs
  • D2 · windows_clang::queue_type_edges (cognitive 22) crates/libs/clang/src/lib.rs
  • D2 · windows_reactor::native::winui::grid::set_definitions (cognitive 22) crates/libs/reactor/src/native/winui/grid.rs
  • D2 · windows_clang::validate_complete_layout (cognitive 21) crates/libs/clang/src/lib.rs
  • D2 · ComponentLoop::live_controlled_feedback_native_finish (cognitive 21) crates/libs/reactor/src/app/mod.rs
  • D2 · tool_win32::scrape_um_arch (cognitive 20) crates/tools/win32/src/main.rs
  • D2 · windows_clang::param_attributes (cognitive 18) crates/libs/clang/src/lib.rs
  • D2 · windows_clang::extract::decode_reachable_structs (cognitive 17) crates/libs/clang/src/extract.rs
  • D2 · windows_reactor::native::winui::pointer_event_handler (cognitive 17) crates/libs/reactor/src/native/winui/mod.rs
  • D2 · tool_win32::replace_rdl (cognitive 17) crates/tools/win32/src/main.rs
  • D2 · windows_clang::extract::extract (cognitive 16) crates/libs/clang/src/extract.rs
  • D2 · windows_clang::extract::apply_source_annotations (cognitive 16) crates/libs/clang/src/extract.rs
  • D4 · Members sharing a duplicated core (246 members, 50+ identical tokens) crates/libs/collections/src/bindings.rs
  • D4 · Members sharing a duplicated core (152 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs
  • D4 · Members sharing a duplicated core (78 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs
  • D4 · Members sharing a duplicated core (27 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certadm/mod.rs
  • D4 · Members sharing a duplicated core (26 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs
  • D4 · Members sharing a duplicated core (21 members, 50+ identical tokens) crates/libs/webview/src/bindings.rs
  • D4 · Members sharing a duplicated core (18 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs
  • D4 · Members sharing a duplicated core (17 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certcli/mod.rs
  • D4 · Members sharing a duplicated core (11 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs
  • D4 · Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs
  • D4 · Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs
  • D4 · Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs
  • D4 · Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs
  • D4 · Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/future/src/bindings.rs
  • D4 · Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs
  • D4 · Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs
  • D4 · Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs
  • D4 · Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs
  • D4 · Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dinput/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs
  • D4 · Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled — €520,000–€2,600,000
Cost to rebuild€520,000–€2,600,000 (5.1–16.2 person-years (8,584–27,231 h), ~6–21 engineers)
Domain complexityLow — harder problems cost more per line
Quality factor0.7× (at 49% quality) — the last 20% of quality is most of the work
Size & shapeVery large · effort split not classified for 1,908,289 line(s) outside the .NET model (the tier breakdown is a C#-only syntax walk)
Effort basisThe rebuild estimate prices 1,908,316 code lines. Comment-only lines count toward the 1,908,318-line size but are not build effort.

This codebase represents roughly ~10.7 person-years of build effort (about ~€1,600,000 to rebuild). Its weakest lens is Readiness at 40% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Low (×0.9) — library/CLI × a 0.7× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Resolve the 52 Leaked secret finding(s) in Secret Scanning — start with REDACTED (52).
+9.2 pts · Medium effort · Secret Scanning
2
Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
+9.9 pts · Medium effort · Observability
3
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
+9.9 pts · Medium effort · DR & Backup

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Very large asset (~10.7 person-years to rebuild), and its weakest lens is Readiness at 40%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Very large, ~10.7 person-years rebuild (1,908,318 LoC) · weakest lens: Readiness 40%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 6.6/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 4–8% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2/D4 code quality: averaging 6.6/10 across the code-quality signals actually measured
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.

arch helpers helpers windows-link windows-link helpers->windows-link tool-package tool-package windows-bindgen windows-bindgen tool-package->windows-bindgen windows-metadata windows-metadata tool-package->windows-metadata windows-rdl windows-rdl tool-package->windows-rdl tool-reactor tool-reactor tool-reactor->helpers tool-reactor->windows-bindgen windows-default windows-default tool-reactor->windows-default tool-reactor->windows-metadata tool-reactor->windows-rdl tool-webview tool-webview tool-webview->helpers tool-webview->windows-bindgen windows-clang windows-clang tool-webview->windows-clang tool-webview->windows-rdl tool-win32 tool-win32 tool-win32->helpers tool-win32->windows-clang tool-win32->windows-default tool-win32->windows-metadata tool-win32->windows-rdl windows windows windows-core windows-core windows->windows-core windows-future windows-future windows->windows-future windows-numerics windows-numerics windows->windows-numerics windows-time windows-time windows->windows-time windows-bindgen->windows-default windows-bindgen->windows-metadata windows-canvas windows-canvas windows-composition windows-composition windows-canvas->windows-composition windows-canvas->windows-core windows-canvas->windows-numerics windows-reactor windows-reactor windows-canvas->windows-reactor windows-window windows-window windows-canvas->windows-window windows-clang->windows-default windows-clang->windows-metadata windows-composition->windows-core windows-composition->windows-numerics windows-composition->windows-time windows-composition->windows-window windows-core->windows-link windows-future->windows-core windows-future->windows-link windows-numerics->windows-core windows-rdl->windows-default windows-rdl->windows-metadata windows-reactor->windows-core windows-reactor->windows-future windows-reactor->windows-numerics windows-reactor->windows-time windows-time->windows-core windows-window->windows-core __more__ +27 more projects

Architecture — module dependency matrix

Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)

1516 modules, 8026 dependencies. 3 dependency cycles across 632 modules, marked above the diagonal.

Showing the 40 most-connected modules; 1476 more are not drawn.

Module dependency matrix. The row depends on the column; the number is how many type pairs create the dependency. A cell above the diagonal is part of a dependency cycle.
depends on →1 windows_bindgen.guid2 windows_core.imp.can_into3 windows_core.out_ref4 windows_core.runtime_name5 windows_core.type6 windows_result.bool7 windows_bindgen.type_name8 windows_bindgen.winmd.reader9 windows_reactor.element10 windows_registry.bindings11 windows_strings.bstr12 windows_strings.pcstr13 windows_strings.pstr14 windows_clang15 windows_sys.Windows.Win32.oaidl16 windows_metadata.reader.tables17 windows_result.hresult18 windows_bindgen.types19 windows_bindgen.config20 windows_core.runtime_type21 windows_bindgen.types.interface22 windows_numerics.bindings23 windows_strings.hstring24 windows_time.bindings25 windows_canvas.reactor_bindings26 windows_collections.bindings27 windows_strings.pcwstr28 windows_strings.pwstr29 windows_core.inspectable30 windows_sys.Windows.Win32.winnt31 windows_composition.bindings32 windows_reactor.native.winui.bindings33 windows.Windows.Win32.oaidl34 windows.Windows.Win32.shobjidl_core35 windows_webview.bindings36 windows.Windows.Win32.objidlbase37 windows_core.unknown38 windows_canvas.bindings39 windows_canvas.types40 windows.Windows.Foundation
1 windows_bindgen.guid
2 windows_core.imp.can_into
3 windows_core.out_ref
4 windows_core.runtime_name
5 windows_core.type
6 windows_result.bool
7 windows_bindgen.type_name1
8 windows_bindgen.winmd.reader2
9 windows_reactor.element21
10 windows_registry.bindings1
11 windows_strings.bstr1
12 windows_strings.pcstr1
13 windows_strings.pstr1
14 windows_clang22
15 windows_sys.Windows.Win32.oaidl41
16 windows_metadata.reader.tables1325
17 windows_result.hresult1
18 windows_bindgen.types1212
19 windows_bindgen.config11121
20 windows_core.runtime_type1
21 windows_bindgen.types.interface21312
22 windows_numerics.bindings55
23 windows_strings.hstring111
24 windows_time.bindings22
25 windows_canvas.reactor_bindings4417849
26 windows_collections.bindings1111111121413111720
27 windows_strings.pcwstr11
28 windows_strings.pwstr11
29 windows_core.inspectable112113129132229
30 windows_sys.Windows.Win32.winnt2746
31 windows_composition.bindings24040838379914086
32 windows_reactor.native.winui.bindings322521750314166686201463902639
33 windows.Windows.Win32.oaidl26223222271822158
34 windows.Windows.Win32.shobjidl_core197195319524521611959522371507
35 windows_webview.bindings2810328243103141189
36 windows.Windows.Win32.objidlbase6664164314664113176
37 windows_core.unknown2114113313622187102594929
38 windows_canvas.bindings49493949963
39 windows_canvas.types113
40 windows.Windows.Foundation101315433127521911351
Dependency, pointing down the layeringAbove the diagonal — part of a cycleThe module itself
windows_bindgen.guid…ows_core.imp.can_intowindows_core.out_ref…ows_core.runtime_namewindows_core.typewindows_result.bool…ows_bindgen.type_name…_bindgen.winmd.reader…ndows_reactor.element…ows_registry.bindingswindows_strings.bstrwindows_strings.pcstrwindows_strings.pstrwindows_clang…s.Windows.Win32.oaidl…etadata.reader.tableswindows_result.hresultwindows_bindgen.typeswindows_bindgen.config…ows_core.runtime_type…ndgen.types.interface…ows_numerics.bindings…ndows_strings.hstringwindows_time.bindings…nvas.reactor_bindings…_collections.bindingswindows_strings.pcwstrwindows_strings.pwstr…dows_core.inspectable…s.Windows.Win32.winnt…_composition.bindings…native.winui.bindings…s.Windows.Win32.oaidl…s.Win32.shobjidl_core…dows_webview.bindings…dows.Win32.objidlbasewindows_core.unknown…ndows_canvas.bindingswindows_canvas.types…ws.Windows.Foundationwindows_bindgen.guid1…ows_core.imp.can_into2windows_core.out_ref3…ows_core.runtime_name4windows_core.type5windows_result.bool6…ows_bindgen.type_name7…_bindgen.winmd.reader8…ndows_reactor.element9…ows_registry.bindings10windows_strings.bstr11windows_strings.pcstr12windows_strings.pstr13windows_clang14…s.Windows.Win32.oaidl15…etadata.reader.tables16windows_result.hresult17windows_bindgen.types18windows_bindgen.config19…ows_core.runtime_type20…ndgen.types.interface21…ows_numerics.bindings22…ndows_strings.hstring23windows_time.bindings24…nvas.reactor_bindings25…_collections.bindings26windows_strings.pcwstr27windows_strings.pwstr28…dows_core.inspectable29…s.Windows.Win32.winnt30…_composition.bindings31…native.winui.bindings32…s.Windows.Win32.oaidl33…s.Win32.shobjidl_core34…dows_webview.bindings35…dows.Win32.objidlbase36windows_core.unknown37…ndows_canvas.bindings38windows_canvas.types39…ws.Windows.Foundation401221111122411325112121112112131255111224417849111111112141311172011111121131291322292746240408383799140863225217503141666862014639026392622322227182215819719531952452161195952237150728103282431031411896664164314664113176211411331362218710259492949493949963113101315433127521911351+1476 more modules (most-connected shown)

At a glance — Code Health · 90% · Exemplary ·

At a glance — Architecture · 99% · Exemplary ·

At a glance — Maturity · 56% · Adequate · gated by M2 ·

At a glance — Readiness · 40% · Weak · gated by D13, P2 ·

At a glance — Security · 40% · Weak · gated by D36 ·

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A02:2021 — Cryptographic Failures52High / Critical
A03:2021 — Injection46High / Critical

Roadmap

First, implement user-facing diagnostic logging to capture error details for reproducible bug reports, and immediately resolve the fifty-two leaked secrets found in the codebase. Next, document and test your disaster recovery procedures to ensure you can meet recovery time and point objectives, while verifying that deployment approvals are properly enforced to prevent bad builds from reaching users. Finally, maintain a changelog to track release history and improve overall release hygiene.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 52 Leaked secret finding(s) in Secret Scanning — start with REDACTED (52).+9.2 ptsMediumSecret Scanning
Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.+9.9 ptsMediumObservability
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).+9.9 ptsMediumDR & Backup
The release job declares an environment, but its protection rules are not visible from the repository — confirm required reviewers are attached, or publish as a draft release so a bad build can be stopped before users can download it.+9.2 ptsMediumDeployment & Rollback
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+9.2 ptsMediumRelease Hygiene
Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life.+3.5 ptsLowPlatform End-of-Life
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.+5.5 ptsMediumDocumentation (README)
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).+5.5 ptsMediumArchitecture documentation

File quality

Per-file score 0–10 — a quality signature. Of 432 files carrying findings, judged against the Preview bar: 0% slop · 5% mixed · 95% near-clean.

FileScoreBandWorst signal
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED4.2MixedSecret Scanning: Leaked secret: REDACTED
REDACTED4.2MixedSecret Scanning: Leaked secret: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.0MixedSecret Scanning: Leaked secret: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
crates/libs/rdl/src/reader/interface.rs5.9MixedCyclomatic Complexity: Encoder::encode_interface (cyclomatic 45)

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 98

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 3109

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 9

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 6

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 55 of 60 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 5 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 60 dimensions across the health lenses
D1D2D4D5D9D13D14D15D17D19D21D22D24D26D29D34D35D36D44AX10AX3AX4AX5AX8AX9GD1M1M2M3M4P1P2P3P4P5P6X1X12X13X14X15X16X17X18X19X20X21X22X23X24X25X26X27X28X29X3X30X32X4X5

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 3192 of 3216 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Watchdog duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a0eaa3-e5db-7154-8ade-1e1d486c07d9.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D3 God Classes — evaluation did not complete — God Classes not included (check did not complete) — excluded from the score.
  • D6 Cohesion (LCOM4) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability NOT MEASURED: the test run produced no results for any test tier, so no test ever ran and flakiness could not be exercised. The cause could not be attributed, so it is excluded from the score rather than read as an absence of tests.
  • D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 7 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, and no committed Cargo.lock resolves them to versions, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Cargo manifest, but the licence verdict published here was taken over its NuGet package dependencies. Nothing was read about its Cargo dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (83 contributor(s) across 2501 commit(s) sampled, automation and bot accounts excluded). One of them holds 80% of the history; the other 82 hold 0.2% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
  • D17 Explicit Debt — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 0 deducted marker(s) and the 0.0/KLoC density on this row were taken over this repository's .NET projects ALONE: .rs (1,908,053 lines, 100% of production source) went unread, because every marker collector on this path is reached through a C# workspace. A read-only sweep of that source finds at least 7 task marker(s) (TODO/FIXME/HACK/XXX) across 4 file(s) that this score does not count — a floor, since only line comments are read there and D17's other eight marker kinds (suppressions, NoWarn, editorconfig severities, empty catches, commented-out code, Obsolete, dead code, preprocessor branches) need a compiler we do not have for that language. The debt in that source is UNMEASURED — its absence from the score above is a gap in this analyzer's language coverage, not a finding that the code carries none.
  • D28 Secrets (history) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `gitleaks` TIMED OUT after 180s against a 180s budget, so we killed its process tree. The budget is ours; the work may simply be larger than it allows. Nothing about this repository is asserted by the absence of a result; the budget is ours to raise, and raising it is our backlog item, not an action for this repository's owner.
  • D39 IL Efficiency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. IL NOT MEASURED: the analyzer's own build of this repository failed for an ENVIRONMENT reason (exit 1) — MSBuild's engine or the CLR gave up, or our image does not carry the SDK band/targeting pack this repository needs. This is OUR limitation, not a defect in the repo, and it is not a statement that this repository fails to build. D18 owns the question of whether this repository builds; it was not answered here.
  • AXB1 Runtime evidence locked — no reproducible boot — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, or a Dockerfile. None was found, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. Watchdog then boots it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (5): D19, D21, D22, D24, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity5.4 / 10Adequate✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 5.4 / 10 · rule-coverage 100% · ceiling Prevented

185 function(s) exceeded the cyclomatic complexity threshold of 15; the worst was WinUiRuntime::apply_one at 182. A further 19 function(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being Type::write_name at 48 — they are counted neither in the figure above nor in this dimension's score. 8 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: crates/libs/webview/src/download.rs (DownloadInterruptReason::from_raw at 31), crates/libs/metadata/src/writer/file/mod.rs (File::Type at 28), crates/libs/rdl/src/reader/guid.rs (windows_rdl::reader::guid::type_to_string at 26), crates/libs/reactor/src/native/winui/grid.rs (windows_reactor::native::winui::grid::set_attached at 25), crates/libs/reactor/src/native/winui/framework.rs (windows_reactor::native::winui::framework::set at 18), and 3 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

windows_clang::choose_type_root_cached (cyclomatic 46) · ×17crates/libs/clang/src/lib.rs:2079
Pump::reconcile_planned_view (cyclomatic 96) · ×12crates/libs/reactor/src/core/pump/planner/view.rs:69
tool_reactor::generate_winui::generate_event_arm (cyclomatic 48) · ×6crates/tools/reactor/src/generate_winui.rs:1022
Type::combine_closure (cyclomatic 47) · ×5crates/libs/bindgen/src/type_closure.rs:131
WinUiRuntime::apply_one (cyclomatic 182) · ×3crates/libs/reactor/src/native/winui/mod.rs:1713

+ 129 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 17 windows_clang finding(s) in Cyclomatic Complexity — start with extract.rs (12), lib.rs (5). — One of this dimension's main actionable groups (17 warning-level).
  2. Resolve the 12 Pump finding(s) in Cyclomatic Complexity — start with view.rs (5), native_work.rs (2), element.rs (2). — One of this dimension's main actionable groups (12 warning-level).
  3. Resolve the 6 tool_reactor finding(s) in Cyclomatic Complexity — start with generate_winui.rs (3), generate.rs (2), generate_surface.rs. — One of this dimension's main actionable groups (6 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity4.9 / 10Weak✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented → Verified → Prevented · effective 4.9 / 10 · rule-coverage 100% · ceiling Prevented

223 function(s) exceeded the cognitive complexity threshold of 15; the worst was Snapshot::plan at 294.

windows_clang::extract::extract_child (cognitive 73) · ×20crates/libs/clang/src/extract.rs:827
Pump::reconcile_planned_view (cognitive 174) · ×14crates/libs/reactor/src/core/pump/planner/view.rs:69
windows_bindgen::filter_parser::parse_tree (cognitive 34) · ×10crates/libs/bindgen/src/filter_parser.rs:37
Encoder::encode_interface (cognitive 112) · ×8crates/libs/rdl/src/reader/interface.rs:108
windows_rdl::formatter::format_seq (cognitive 51) · ×8crates/libs/rdl/src/formatter/mod.rs:12

+ 134 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 20 windows_clang finding(s) in Cognitive Complexity — start with extract.rs (13), lib.rs (7). — One of this dimension's main actionable groups (20 warning-level).
  2. Resolve the 14 Pump finding(s) in Cognitive Complexity — start with view.rs (5), native_work.rs (3), element.rs (2). — One of this dimension's main actionable groups (14 warning-level).
  3. Resolve the 10 windows_bindgen finding(s) in Cognitive Complexity — start with format.rs (3), filter_parser.rs (2), lib.rs (2). — One of this dimension's main actionable groups (10 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication9.4 / 10Stronggated by 2622 serious findings✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.4 / 10 · rule-coverage 100% · ceiling Verified

2284 duplicated block group(s) detected. A further 338 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 2 of the 2622 are in trees this repository does not ship — vendored, example/demo, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.

Duplicated block (6 lines × 2) · ×422crates/libs/bindgen/src/types/cpp_method.rs:319
Duplicated block (5 lines × 2) · ×276crates/libs/future/src/bindings.rs:1330
Duplicated block (6 lines × 3) · ×178crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3376
Members sharing a duplicated core (4 members, 50+ identical tokens) · ×109crates/libs/composition/src/bindings.rs:1226
Duplicated block (5 lines × 3) · ×104crates/libs/clang/src/extract.rs:1433

+ 315 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 422 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with REDACTED (413), bindings.rs (3), cpp_method.rs (2). — One of this dimension's main actionable groups (422 warning-level).
  2. Resolve the 276 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with REDACTED (272), lib.rs (2), bindings.rs. — One of this dimension's main actionable groups (276 warning-level).
  3. Resolve the 178 Duplicated block (6 lines × 3) finding(s) in Code Duplication — start with REDACTED (178). — One of this dimension's main actionable groups (178 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D5 · Coupling8.8 / 10Strong✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 8.8 / 10 · rule-coverage 100% · ceiling Prevented

47 production modules (Cargo), 0 dependency cycle(s), 1 unstable depended-on module(s). Read from the build's own module declarations; 6 module(s) off the main sequence, with abstractness counted on 32 of the 47 (the rest declare no modelled class or interface, export only macros, or are not Gradle/Maven modules or Cargo crates).

Off the main sequence: windows-metadata · ×6
Unstable project windows-composition

What to do

  1. Resolve the 6 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (6 warning-level).
  2. Resolve the 1 Unstable project windows-composition finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
  3. Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1538 test methods: 752 unit, 786 integration, 0 BDD, 0 e2e. The Rust suite contributes 1538 `#[test]` function(s) across 317 file(s) declaring at least one; its unit/integration split is Cargo's own — 214 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D13 · Secret Scanning0.0 / 10Critical✓ Tool-verified

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Prevented

52 secret(s) detected.

REDACTED

What to do

  1. Resolve the 52 Leaked secret finding(s) in Secret Scanning — start with REDACTED (52). — One of this dimension's main actionable groups (52 issue-level).
  2. Enforce Secret Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 3 packages use a banned license. ★ DEPTH: every package graded here is one this repository's MSBuild projects declare as a direct `PackageReference` (1 declared), and nothing beyond them was reached — this is the DECLARATION-SITE set, NOT the transitive closure. .NET has no lockfile a checkout is guaranteed to carry and this pass grades an unrestored tree, so a banned licence that only a direct dependency's OWN dependencies pull in is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ COVERAGE OF THIS VERDICT: it grades this repository's NuGet package dependencies and nothing else. The repository also declares a Cargo manifest, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots9.8 / 10Stronggated by 60 serious findings✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: crates/libs/clang/src/lib.rs (27×181=4887); crates/libs/reactor/src/native/winui/mod.rs (24×182=4368); crates/tools/reactor/src/schema.rs (14×131=1834)

Hotspot: crates/libs/clang/src/lib.rs · ×60crates/libs/clang/src/lib.rs:773

What to do

  1. Resolve the 60 Hotspot finding(s) in Churn × Complexity Hotspots — start with REDACTED (25), main.rs (4), lib.rs (2). — One of this dimension's main actionable groups (60 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt10.0 / 10Exemplary○ Nothing flagged

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 deducted debt markers + 0 dead symbols across 29 LoC in the .NET projects (0.0/KLoC) → score 10.0. Measured on the .NET source only: .rs (100% of production source) was not read, and carries at least 7 uncounted task marker(s) in 4 file(s).

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

D19 · Documentation QualityExemplary◐ Sampled · advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Documented

This is an exhaustive collection of READMEs for the crates/libs/ directories, each documenting its own directory rather than the repository. The content is focused on Rust bindings and metadata for Windows APIs (COM, WinRT, DXGI, Direct2D, D3D), with a strong architecture section covering the full pipeline from headers to RDL to WinMD. It provides clear usage examples for each crate, an overview of the canonical snapshot purpose, and cross-references to related docs, all well structured. (6 of 25 sampled documents could not be assessed: 1 of 2 evaluation groups failed.)

Documentation: no architecture or design documentationdocs/readme.md

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.

D21 · Naming ConsistencyExemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 13 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D22 · Internal API ConsistencyStronggated by 1 serious finding◐ Sampled · advisory

What it measures: Whether the internal API surface is consistent and coherent.

Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.

Maturity: Documented → Verified → Prevented · effective Strong / 10 · rule-coverage 100% · ceiling Verified

1 API inconsistencies across a 400-member sample of 653 exposed types.

Inconsistent naming for adding transitions to a storyboard. `Manager` uses `schedule_transition`, while `Storyboard` uses `add_transition` and `add_transition_at_keyframe`. The verb 'schedule' implies immediate execution or queueing, while 'add' implies construction. Furthermore, `Manager` takes a `time` parameter directly, whereas `Storyboard` uses a `Keyframe` object for timing, creating a conceptual mismatch in how time is specified.

What to do

  1. Resolve the 1 Inconsistent naming for adding transitions to a storyboard. `Manager`… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d22_recommendation.md · top locations in Appendix A, every location in findings.md.

D24 · Comment ValueExemplary◐ Sampled · advisory

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Judged by language model at low temperature (0.0-0.1) on deterministically sampled inline comments with surrounding code; findings verified back to sampled comments by substring match. Advisory, sampled.

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Documented

23 valuable / 0 redundant across 22 sampled comments.

✓ On the Gold path — maintain.

Detailed fixes: d24_recommendation.md.

D26 · Project Cohesion10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 4 projects flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D29 · Static Analysis (SAST)6.0 / 10Adequate✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Documented

46 finding(s): 0 critical, 46 high, 0 medium, 0 low. 43 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 1 file(s) — `crates/libs/reactor/src/native/winui/mod.rs` (line 4206) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 5 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  3. No action in Static Analysis (SAST) — all 43 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (43 issue-level, 0 of them charged here).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1456 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is crates/libs/core/src/compose.rs. Counted over 1456 of the 1848 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned files with no living knowledge

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.

D35 · Change Coupling10.0 / 10Stronggated by 2 serious findings✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: lib.rs↔lib.rs 79%; interface.rs↔interface.rs 53%

Change coupling: lib.rs ↔ lib.rs · ×2crates/libs/sys/src/lib.rs

What to do

  1. Resolve the 2 Change coupling finding(s) in Change Coupling — start with lib.rs, interface.rs. — One of this dimension's main actionable groups (2 warning-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D36 · Supply-chain Provenance & Signing0.0 / 10Critical✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 2 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.

D44 · Platform End-of-Life6.0 / 10Adequate✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Documented

1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 4 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

End-of-life runtime: .NET net9.0

What to do

  1. Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d44_recommendation.md · top locations in Appendix A, every location in findings.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.

Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.

Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

M1 · Documentation (README)4.5 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

  • 2622 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.

What to do

  • Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 4 of 4 project(s) that lack one — worth up to 2 pts.
  • Review the README against recent changes; refresh the parts that drifted.
M2 · Architecture documentation2.0 / 10Weak✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
M3 · Folder & project structure8.0 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

  • Only 2/4 projects share a common root namespace — the code's module identity is inconsistent.

What to do

  • Adopt a consistent root-namespace convention (a shared prefix, e.g. Acme.*); short project-file/directory names are fine as long as the RootNamespace is uniform.
M4 · Documentation accuracy10.0 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P2 · Observability0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.

What to do

  • Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
P3 · Security & performance tooling7.0 / 10Strong✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

What to do

  • Dependabot is configured but does not watch `nuget` — add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

What to do

  • The release job declares an environment, but its protection rules are not visible from the repository — confirm required reviewers are attached, or publish as a draft release so a bad build can be stopped before users can download it.
P5 · DR & Backup4.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

What to do

  • Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

  • No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. Deterministic, provable per finding. Advisory.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. Deterministic, provable per finding. Advisory.

X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. Deterministic, provable per finding. Advisory.

X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. Deterministic, provable per finding. Advisory.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. Deterministic, provable per finding. Advisory.

X20 · Mistyped argument guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `ArgumentNullException` tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. Deterministic, provable per finding. Advisory.

X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. Deterministic, provable per finding. Advisory.

X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. Deterministic, provable per finding. Advisory.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. Deterministic, provable per finding. Advisory.

X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `foreach` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is enumerating invalidates the enumerator it is holding, so the next `MoveNext` throws `InvalidOperationException` and the remaining items are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. Deterministic, provable per finding. Advisory.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X32 · Type resolved by simple name across every loaded assembly10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a plugin lookup names the type it means — searching every assembly loaded into the process for a candidate whose SIMPLE name equals a string supplied at runtime, and taking the first one found, is decided by assembly LOAD ORDER rather than by this source, so the same name can resolve to a different type on the next run.

Method: Roslyn syntax only, no semantic model: every invocation of `First`/`FirstOrDefault`/`Single`/`SingleOrDefault` whose OWN expression subtree contains both a `GetAssemblies()` call and a `GetTypes()`/`GetExportedTypes()` call — a single-element pick out of every type loaded into the process. A nested selector in the same chain sees no `GetAssemblies()` in its own subtree and is outside the population, so one lookup counts once however many links its chain has. A finding additionally needs both remaining halves: the selector must be `First`/`FirstOrDefault` (`Single`/`SingleOrDefault` reports the ambiguity rather than resolving it, and is counted and never reported), and the chain must carry an `==` comparison of `<lambda parameter>.Name` against something that is not a literal. The receiver must be a plain identifier bound by one of the chain’s own lambdas, which places `assembly.GetName().Name == "X"` outside the rule by construction. One exemption: a `.Name` test joined by `&&` to a `FullName`/`AssemblyQualifiedName` test on the same identifier is spared; joined by `||` it is not. Deterministic, provable per finding. Advisory.

X4 · Structured logging10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. Deterministic.

X5 · Nullable reference types10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health90%ExemplarySolid.
Architecture99%ExemplaryStrongest area.
Maturity56%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness40%Weak — gated by D13, P2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security40%Weak — gated by D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Unscored — 2 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Not included — 55 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC2 Forms & labels — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC3 Page structure — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC4 Keyboard semantics — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC5 ARIA correctness — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC6 Visual & motion safety — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC7 A11y enforcement — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AX1 Captive dependencies — no DI registrations detected
  • AX2 Stateful singletons — no singleton implementations detected
  • AX6 Interface segregation — no public interfaces
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • D10 Test Quality — ~73998 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not measured — no test run produced results
  • D12 Dependency Hygiene — Not scored — 7 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, and no committed Cargo.lock resolves them to versions, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — single-maintainer repository — bus factor is not applicable
  • D18 Solution Shape — D18 scores the shape of a .NET solution, but this repository's production source is mostly .cpp, .rs — the .NET project files present are an immaterial minority — so the dimension does not apply.
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D23 Boundary Type-Coupling — single shared-core project — no cross-context coupling to assess
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — symbol resolution incomplete — too few calls resolved to assess navigability
  • D28 Secrets (history) — gitleaks killed before it finished — this repository's git history not scanned
  • D3 God Classes — God Classes not included (check did not complete)
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D39 IL Efficiency — IL not measured — the analyzer's build of the target did not succeed
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
  • D6 Cohesion (LCOM4) — D6 reads a CS/VB/GO/SCALA/SWIFT/DART/JAVA/PY/KT/TS/TSX/MTS/CTS/JS/JSX/MJS/CJS/PHP class graph only — this repository's production source is .cpp, .rs, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage NOT MEASURED: `--collect:"XPlat Code Coverage"` names a data collector that ships in the `coverlet.collector` package, and this repository wires up none — no test project references it and no runsettings declares one. The absence of coverage here is therefore not evidence about the suite or about our analyzer environment: without a collector, `--collect` produces nothing even from a suite that builds and passes. Add a `coverlet.collector` PackageReference to the test project(s) (or commit the Cobertura/OpenCover/lcov report your CI produces) and real coverage will be measured. It is excluded from the score rather than counted as a near-zero defect.
  • DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (13275 value object(s))
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • IC1 Incompleteness & stubs — reported, not scored — this repository's C# declares no analysable method bodies (a constants, record or DTO assembly), and this score is a density of unfinished work per method, which has no denominator here. The file-level signals below were still collected and are shown in full
  • P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
  • P8 Schema migrations — no EF Core usage detected
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF3 Async & latency hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • S1 Web-Security Posture — No web surface detected in the analyzed source — no HTTP API or web-UI project (no controllers/minimal-API endpoints, no Razor/Blazor views) and no web middleware (HTTPS redirection, HSTS, security headers, cookies). Transport security, security headers, secure cookies, CSRF/input-validation and middleware-order controls are therefore N/A here — this is a library/CLI/worker, not a web app. Crypto hygiene was still checked and found nothing to flag. If this codebase becomes web-facing, the dimension reactivates automatically.
  • X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X2 Cancellation propagation — no async methods found
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 98 finding(s)
D13 · Secret Scanning · Leaked secret · ×52
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 27 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 18 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 3109 finding(s)
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×422
  • Duplicated block (6 lines × 2) crates/libs/bindgen/src/types/cpp_method.rs:319 — crates/libs/bindgen/src/types/cpp_method.rs:319-324 | crates/libs/bindgen/src/types/cpp_method.rs:338-343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/bindgen/src/types/cpp_method.rs:357 — crates/libs/bindgen/src/types/cpp_method.rs:357-362 | crates/libs/bindgen/src/types/cpp_method.rs:372-377 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/bindgen/src/types/interface.rs:361 — crates/libs/bindgen/src/types/interface.rs:361-366 | crates/libs/bindgen/src/types/interface.rs:384-390 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/bindgen/src/types/mod.rs:127 — crates/libs/bindgen/src/types/mod.rs:127-132 | crates/libs/bindgen/src/types/mod.rs:1185-1190 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/future/src/bindings.rs:1282 — crates/libs/future/src/bindings.rs:1282-1287 | crates/libs/reference/src/bindings.rs:179-184 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) crates/libs/reference/src/bindings.rs:147 — crates/libs/reference/src/bindings.rs:147-152 | crates/libs/reference/src/bindings.rs:259-264 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:799 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:799-804 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2778-2783 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:813 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:813-818 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2792-2797 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1974 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1974-1979 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3677-3682 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:109 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:109-114 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:123-128 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1114 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1114-1119 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:278-283 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs` and `crates/libs/windows/src/Windows/Foundation/Collections/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1404 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1404-1409 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1607-1612 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1418 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1418-1423 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1621-1626 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2220 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2220-2225 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3075-3080 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:305 — crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:305-310 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:319-324 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1458 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1458-1463 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1472-1477 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:243 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:243-248 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1673-1678 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:257 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:257-262 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1687-1692 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:29 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:29-34 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:43-48 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:264 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:264-269 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:278-283 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:687 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:687-692 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:701-706 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:962 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:962-967 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:976-981 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1621 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1621-1626 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1635-1640 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1931 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1931-1936 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1945-1950 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2145 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2145-2150 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2159-2164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • + 397 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×276
  • Duplicated block (5 lines × 2) crates/libs/future/src/bindings.rs:1330 — crates/libs/future/src/bindings.rs:1330-1334 | crates/libs/future/src/bindings.rs:1339-1343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7012 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7012-7016 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3313-3317 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7789 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7789-7793 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2874-2878 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/Notifications/mod.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:52 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:52-56 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:20-24 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:115 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:115-119 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:232-236 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:143 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:143-147 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:260-264 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:109 — crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:109-113 | crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs:25-29 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:608 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:608-612 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:123-127 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:622 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:622-626 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:137-141 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:636 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:636-640 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:109-113 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:494 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:494-498 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:835-839 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1233 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1233-1237 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:971-975 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2532 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2532-2536 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2644-2648 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2546 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2546-2550 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2658-2662 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2579 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2579-2583 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2691-2695 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2930 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2930-2934 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:3026-3030 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1484 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1484-1488 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3820-3824 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:204 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:204-208 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:364-368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:234 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:234-238 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1748-1752 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:693 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:693-697 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:148-152 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:25 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:25-29 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:207-211 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:77 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:77-81 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3221-3225 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:197 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:197-201 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:324-328 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 51 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:204 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:204-208 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:622-626 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1668 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1668-1672 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2548-2552 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • + 251 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×178
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3376 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3376-3381 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3390-3395 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3404-3409 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3819 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3819-3824 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3833-3838 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3847-3852 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2851 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2851-2856 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2865-2870 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2879-2884 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/Media/Playback/mod.rs:2531 — crates/libs/windows/src/Windows/Media/Playback/mod.rs:2531-2536 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2545-2550 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2559-2564 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:654 — crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:654-659 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:668-673 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:682-687 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1500 — crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1500-1505 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2661-2666 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2784-2789 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:467 — crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:467-472 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:481-486 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:510-515 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/UI/Core/mod.rs:350 — crates/libs/windows/src/Windows/UI/Core/mod.rs:350-355 | crates/libs/windows/src/Windows/UI/Core/mod.rs:867-872 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2469-2474 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/UI/Input/mod.rs:174 — crates/libs/windows/src/Windows/UI/Input/mod.rs:174-179 | crates/libs/windows/src/Windows/UI/Input/mod.rs:188-193 | crates/libs/windows/src/Windows/UI/Input/mod.rs:202-207 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/UI/Input/mod.rs:4194 — crates/libs/windows/src/Windows/UI/Input/mod.rs:4194-4199 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4209-4214 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4224-4229 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5321 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5321-5326 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7271-7276 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15653-15658 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19893 — crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19893-19898 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19958-19963 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:20024-20029 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/AI/Actions/mod.rs:650 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:650-655 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1772-1777 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2074-2079 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/AI/Actions/mod.rs:1784 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:1784-1789 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:339-344 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1420-1425 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/AI/Actions/mod.rs:1933 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:1933-1938 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:544-549 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:676-681 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:496 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:496-501 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2157-2162 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1524-1529 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Media/Audio/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1256 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1256-1261 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs:80-85 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1858-1863 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1470 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1470-1475 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1327-1332 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:404-409 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1548 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1548-1553 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:717-722 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:96-101 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:118 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:118-123 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2061-2066 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1310-1315 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:180 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:180-185 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2147-2152 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1384-1389 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:242 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:242-247 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2233-2238 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1458-1463 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:315 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:315-320 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2330-2335 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1543-1548 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:376 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:376-381 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2441-2446 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1616-1621 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:407 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:407-412 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2540-2545 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:97-102 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 153 more in this group — see findings.md.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×109
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/composition/src/bindings.rs:1226 — crates/libs/composition/src/bindings.rs:1226-1235 | crates/libs/composition/src/bindings.rs:2602-2611 | crates/libs/composition/src/bindings_lifted.rs:1108-1117 | crates/libs/composition/src/bindings_lifted.rs:2415-2424 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/composition/src/bindings.rs:2350 — crates/libs/composition/src/bindings.rs:2350-2359 | crates/libs/composition/src/bindings_lifted.rs:2025-2034 | crates/libs/reactor/src/native/winui/bindings.rs:13550-13559 | crates/libs/reactor/src/native/winui/bindings.rs:19882-19891 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/composition/src/bindings.rs:3358 — crates/libs/composition/src/bindings.rs:3358-3368 | crates/libs/composition/src/bindings_lifted.rs:3171-3181 | crates/libs/reactor/src/native/winui/bindings.rs:30240-30250 | crates/libs/windows/src/Windows/Foundation/mod.rs:2095-2100 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/future/src/bindings.rs:761 — crates/libs/future/src/bindings.rs:761-770 | crates/libs/future/src/bindings.rs:980-989 | crates/libs/future/src/bindings.rs:1426-1435 | crates/libs/future/src/bindings.rs:1700-1709 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/future/src/bindings.rs:779 — crates/libs/future/src/bindings.rs:779-789 | crates/libs/future/src/bindings.rs:998-1008 | crates/libs/future/src/bindings.rs:1446-1456 | crates/libs/future/src/bindings.rs:1720-1730 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/future/src/bindings.rs:790 — crates/libs/future/src/bindings.rs:790-800 | crates/libs/future/src/bindings.rs:1009-1019 | crates/libs/future/src/bindings.rs:1457-1467 | crates/libs/future/src/bindings.rs:1731-1741 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/future/src/bindings.rs:801 — crates/libs/future/src/bindings.rs:801-811 | crates/libs/future/src/bindings.rs:1020-1030 | crates/libs/future/src/bindings.rs:1468-1478 | crates/libs/future/src/bindings.rs:1742-1752 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/rdl/src/reader/callback.rs:12 — crates/libs/rdl/src/reader/callback.rs:12-45 | crates/libs/rdl/src/reader/delegate.rs:14-45 | crates/libs/rdl/src/reader/fn.rs:12-45 | crates/libs/rdl/src/reader/method.rs:11-41 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/rdl/src/reader/mod.rs:841 — crates/libs/rdl/src/reader/mod.rs:841-865 | crates/libs/rdl/src/reader/mod.rs:885-914 | crates/libs/rdl/src/reader/mod.rs:917-954 | crates/libs/rdl/src/reader/mod.rs:960-981 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:475 — crates/libs/reactor/src/native/winui/bindings.rs:475-484 | crates/libs/reactor/src/native/winui/bindings.rs:27336-27345 | crates/libs/reactor/src/native/winui/bindings.rs:28986-28995 | crates/libs/reactor/src/native/winui/bindings.rs:29071-29080 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:8932 — crates/libs/reactor/src/native/winui/bindings.rs:8932-8941 | crates/libs/webview/src/bindings.rs:2762-2771 | crates/libs/webview/src/bindings.rs:4350-4359 | crates/libs/webview/src/bindings.rs:4513-4522 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:25071 — crates/libs/reactor/src/native/winui/bindings.rs:25071-25080 | crates/libs/reactor/src/native/winui/bindings.rs:25699-25708 | crates/libs/reactor/src/native/winui/bindings.rs:27215-27224 | crates/libs/reactor/src/native/winui/bindings.rs:28567-28576 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1142 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1142-1148 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1795-1801 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1854-1860 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2137-2143 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1149 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1149-1155 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1802-1808 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1861-1867 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2144-2150 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7690 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7690-7696 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:650-656 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:771-777 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4149-4155 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1482 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1482-1492 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3818-3828 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3832-3842 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3846-3856 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:614 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:614-620 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:799-805 | crates/libs/windows/src/Windows/System/mod.rs:891-897 | crates/libs/windows/src/Windows/System/mod.rs:928-934 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:573 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:573-578 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:89-94 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:34-39 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1569-1574 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1074 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1074-1080 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1203-1209 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3207-3213 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3386-3392 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1960 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1960-1966 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2554-2560 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2845-2851 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5219-5225 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1971 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1971-1977 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2565-2571 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2856-2862 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5230-5236 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1978 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1978-1984 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2572-2578 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2863-2869 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5237-5243 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1102 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1102-1108 | crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs:241-247 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:349-355 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1153-1159 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1319 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1319-1325 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1973-1979 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3467-3473 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:204-210 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1344 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1344-1350 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1998-2004 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3492-3498 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:229-235 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • + 84 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×104
  • Duplicated block (5 lines × 3) crates/libs/clang/src/extract.rs:1433 — crates/libs/clang/src/extract.rs:1433-1437 | crates/libs/clang/src/extract.rs:1455-1461 | crates/libs/clang/src/extract.rs:1479-1485 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1398 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1398-1402 | crates/libs/windows/src/Windows/System/mod.rs:3133-3137 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2847-2851 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/System/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:129 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:129-133 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:246-250 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2219-2223 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:157 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:157-161 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:274-278 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2233-2237 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:171 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:171-175 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:288-292 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2247-2251 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:566 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:566-570 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:11-15 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:186-190 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:643 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:643-647 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2049-2053 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1218-1222 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 27 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1813 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1813-1817 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1349-1353 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:555-559 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2348 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2348-2352 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3792-3796 | crates/libs/windows/src/Windows/UI/Input/mod.rs:203-207 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2539 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2539-2543 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2651-2655 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1677-1681 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2557 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2557-2561 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2669-2673 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1695-1699 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2568 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2568-2572 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2680-2684 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1706-1710 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:51 — crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:51-55 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:226-230 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:749-753 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:139 — crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:139-143 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:153-157 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:167-171 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:96 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:96-100 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:110-114 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:124-128 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:441 — crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:441-445 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1671-1675 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3674-3678 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:156 — crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:156-160 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:211-215 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:246-250 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Data/Json/mod.rs:367 — crates/libs/windows/src/Windows/Data/Json/mod.rs:367-371 | crates/libs/windows/src/Windows/Data/Json/mod.rs:687-691 | crates/libs/windows/src/Windows/Foundation/mod.rs:1288-1292 — before extracting anything, compare `crates/libs/windows/src/Windows/Data/Json/mod.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:100 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:100-104 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:118-122 | crates/libs/windows/src/Windows/Devices/Gpio/mod.rs:334-338 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs` and `crates/libs/windows/src/Windows/Devices/Gpio/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1560 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1560-1564 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:1528-1532 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4125-4129 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` and `crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1892 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1892-1896 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2759-2763 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2965-2969 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1903 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1903-1907 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2770-2774 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2976-2980 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1914 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1914-1918 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2781-2785 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2987-2991 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1921 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1921-1925 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2788-2792 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2994-2998 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1932 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1932-1936 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2799-2803 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:3005-3009 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • + 79 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×97
  • Duplicated block (9 lines × 2) crates/libs/bindgen/src/types/cpp_fn.rs:239 — crates/libs/bindgen/src/types/cpp_fn.rs:239-247 | crates/libs/bindgen/src/types/cpp_fn.rs:261-269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/bindgen/src/types/method.rs:466 — crates/libs/bindgen/src/types/method.rs:466-474 | crates/libs/bindgen/src/types/method.rs:816-825 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/canvas/src/bindings.rs:1318 — crates/libs/canvas/src/bindings.rs:1318-1326 | crates/libs/canvas/src/bindings.rs:1339-1347 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/clang/src/extract.rs:1452 — crates/libs/clang/src/extract.rs:1452-1460 | crates/libs/clang/src/extract.rs:1476-1484 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:411 — crates/libs/collections/src/bindings.rs:411-419 | crates/libs/collections/src/bindings.rs:952-960 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:611 — crates/libs/collections/src/bindings.rs:611-619 | crates/libs/collections/src/bindings.rs:1994-2002 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:716 — crates/libs/collections/src/bindings.rs:716-724 | crates/libs/collections/src/bindings.rs:1206-1214 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:760 — crates/libs/collections/src/bindings.rs:760-768 | crates/libs/collections/src/bindings.rs:1250-1258 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:791 — crates/libs/collections/src/bindings.rs:791-799 | crates/libs/collections/src/bindings.rs:2220-2228 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:1461 — crates/libs/collections/src/bindings.rs:1461-1469 | crates/libs/collections/src/bindings.rs:1716-1724 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:1552 — crates/libs/collections/src/bindings.rs:1552-1560 | crates/libs/collections/src/bindings.rs:1875-1883 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:2169 — crates/libs/collections/src/bindings.rs:2169-2177 | crates/libs/collections/src/bindings.rs:2708-2716 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/collections/src/bindings.rs:2314 — crates/libs/collections/src/bindings.rs:2314-2322 | crates/libs/collections/src/bindings.rs:2327-2335 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:1935 — crates/libs/composition/src/bindings.rs:1935-1943 | crates/libs/composition/src/bindings_lifted.rs:1684-1692 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:1961 — crates/libs/composition/src/bindings.rs:1961-1969 | crates/libs/composition/src/bindings_lifted.rs:1710-1718 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:1973 — crates/libs/composition/src/bindings.rs:1973-1981 | crates/libs/composition/src/bindings_lifted.rs:1722-1730 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:1997 — crates/libs/composition/src/bindings.rs:1997-2005 | crates/libs/composition/src/bindings_lifted.rs:1746-1754 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2026 — crates/libs/composition/src/bindings.rs:2026-2034 | crates/libs/composition/src/bindings_lifted.rs:1775-1783 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2105 — crates/libs/composition/src/bindings.rs:2105-2113 | crates/libs/composition/src/bindings_lifted.rs:1853-1861 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2117 — crates/libs/composition/src/bindings.rs:2117-2125 | crates/libs/composition/src/bindings_lifted.rs:1865-1873 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2127 — crates/libs/composition/src/bindings.rs:2127-2135 | crates/libs/composition/src/bindings_lifted.rs:1875-1883 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2170 — crates/libs/composition/src/bindings.rs:2170-2178 | crates/libs/composition/src/bindings_lifted.rs:1918-1926 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2180 — crates/libs/composition/src/bindings.rs:2180-2188 | crates/libs/composition/src/bindings_lifted.rs:1928-1936 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2192 — crates/libs/composition/src/bindings.rs:2192-2200 | crates/libs/composition/src/bindings_lifted.rs:1940-1948 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) crates/libs/composition/src/bindings.rs:2202 — crates/libs/composition/src/bindings.rs:2202-2210 | crates/libs/composition/src/bindings_lifted.rs:1950-1958 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • + 72 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×97
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1573 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1573-1578 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1587-1592 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1601-1606 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2472-2477 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:289 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:289-294 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:303-308 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:865-870 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:879-884 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/System/mod.rs:4191 — crates/libs/windows/src/Windows/System/mod.rs:4191-4196 | crates/libs/windows/src/Windows/System/mod.rs:4205-4210 | crates/libs/windows/src/Windows/System/mod.rs:4219-4224 | crates/libs/windows/src/Windows/System/mod.rs:4233-4238 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/AI/Actions/mod.rs:657 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:657-662 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:108-113 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:896-901 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1869-1874 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/AI/Actions/mod.rs:1666 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:1666-1671 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:967-972 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:991-996 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1077-1082 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1096 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1096-1101 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:611-616 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1271-1276 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:2117-2122 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1103 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1103-1108 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:617-622 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1277-1282 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:2123-2128 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1238 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1238-1243 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs:64-69 | crates/libs/windows/src/Windows/Foundation/mod.rs:2139-2144 | crates/libs/windows/src/Windows/Web/Http/mod.rs:401-406 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:309 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:309-314 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2324-2329 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:338-343 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1537-1542 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 55 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1757 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1757-1762 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7186-7191 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3508-3513 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3808-3813 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1763 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1763-1768 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7192-7197 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3514-3519 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3814-3819 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4998 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4998-5003 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7004-7009 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:554-559 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3305-3310 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/StartScreen/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5172 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5172-5177 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7080-7085 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:886-891 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3392-3397 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5946 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5946-5951 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7616-7621 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3189-3194 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4071-4076 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Networking/Vpn/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6112 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6112-6117 | crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs:273-278 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:76-81 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:578-583 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6344 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6344-6349 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7930-7935 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3034-3039 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4353-4358 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/Notifications/mod.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6351 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6351-6356 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7937-7942 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3041-3046 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4360-4365 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/Notifications/mod.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6676 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6676-6681 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8085-8090 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1427-1432 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5041-5046 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:30 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:30-35 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:489-494 | crates/libs/windows/src/Windows/System/mod.rs:59-64 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3447-3452 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:225 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:225-230 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:321-326 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:337-342 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:433-438 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:359 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:359-364 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1937-1942 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:898-903 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:534-539 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 27 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:709 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:709-714 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2470-2475 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2027-2032 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:701-706 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 27 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:790 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:790-795 | crates/libs/windows/src/Windows/Media/Import/mod.rs:841-846 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1204-1209 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1525-1530 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:940 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:940-945 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:715-720 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:745-750 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1926-1931 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:783 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:783-788 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2762-2767 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2904-2909 | crates/libs/windows/src/Windows/System/mod.rs:395-400 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Networking/Sockets/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 72 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×84
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1144 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1144-1148 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1797-1801 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1856-1860 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2139-2143 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1151 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1151-1155 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1804-1808 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1863-1867 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2146-2150 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7692 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7692-7696 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:652-656 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:773-777 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4151-4155 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:616 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:616-620 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:801-805 | crates/libs/windows/src/Windows/System/mod.rs:893-897 | crates/libs/windows/src/Windows/System/mod.rs:930-934 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/System/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:574 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:574-578 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:90-94 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:35-39 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1570-1574 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs` and `crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1076 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1076-1080 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1205-1209 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3209-3213 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3388-3392 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1962 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1962-1966 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2556-2560 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2847-2851 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5221-5225 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1973 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1973-1977 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2567-2571 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2858-2862 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5232-5236 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1980 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1980-1984 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2574-2578 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2865-2869 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5239-5243 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1104 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1104-1108 | crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs:243-247 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:351-355 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1155-1159 — `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1321 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1321-1325 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1975-1979 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3469-3473 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:206-210 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1346 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1346-1350 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:2000-2004 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3494-3498 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:231-235 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1364 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1364-1368 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:2018-2022 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3512-3516 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:249-253 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1371 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1371-1375 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:2025-2029 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3519-3523 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:256-260 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:167 — crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:167-171 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:245-249 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:644-648 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:712-716 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:174 — crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:174-178 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:252-256 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:651-655 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:719-723 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:181 — crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:181-185 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:259-263 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:658-662 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:726-730 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:509 — crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:509-513 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:658-662 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3151-3155 | crates/libs/windows/src/Windows/Media/mod.rs:1767-1771 — `crates/libs/windows/src/Windows/Media/Miracast/mod.rs` and `crates/libs/windows/src/Windows/Media/Playback/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 51 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:184 — crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:184-188 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:92-96 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:720-724 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1287-1291 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:28 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:28-32 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1101-1105 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7345-7349 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8191-8195 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:72 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:72-76 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1120-1124 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7377-7381 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8210-8214 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1630 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1630-1634 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2487-2491 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:50-54 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5297-5301 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4719 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4719-4723 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:6222-6226 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9166-9170 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9542-9546 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4726 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4726-4730 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:6229-6233 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9173-9177 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9549-9553 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4733 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4733-4737 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:6236-6240 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9180-9184 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9556-9560 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • + 59 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×72
  • Duplicated block (8 lines × 2) crates/libs/bindgen/src/filter.rs:506 — crates/libs/bindgen/src/filter.rs:506-513 | crates/libs/bindgen/src/filter.rs:573-580 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/clang/src/extract.rs:2462 — crates/libs/clang/src/extract.rs:2462-2469 | crates/libs/clang/src/extract.rs:2486-2493 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/collections/src/bindings.rs:230 — crates/libs/collections/src/bindings.rs:230-237 | crates/libs/reference/src/bindings.rs:1049-1056 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/reference/src/bindings.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) crates/libs/collections/src/bindings.rs:454 — crates/libs/collections/src/bindings.rs:454-461 | crates/libs/collections/src/bindings.rs:999-1006 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/collections/src/bindings.rs:979 — crates/libs/collections/src/bindings.rs:979-986 | crates/libs/collections/src/bindings.rs:2515-2522 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/collections/src/bindings.rs:1574 — crates/libs/collections/src/bindings.rs:1574-1581 | crates/libs/collections/src/bindings.rs:1899-1906 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/core/src/imp/sha1.rs:364 — crates/libs/core/src/imp/sha1.rs:364-371 | crates/libs/core/src/imp/sha1.rs:383-390 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/future/src/bindings.rs:1554 — crates/libs/future/src/bindings.rs:1554-1561 | crates/libs/future/src/bindings.rs:1899-1906 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/rdl/src/reader/mod.rs:845 — crates/libs/rdl/src/reader/mod.rs:845-852 | crates/libs/rdl/src/reader/mod.rs:964-971 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/rdl/src/writer/mod.rs:223 — crates/libs/rdl/src/writer/mod.rs:223-230 | crates/libs/rdl/src/writer/mod.rs:248-255 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/app/mod.rs:395 — crates/libs/reactor/src/app/mod.rs:395-402 | crates/libs/reactor/src/app/mod.rs:410-417 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:945 — crates/libs/reactor/src/native/winui/bindings.rs:945-952 | crates/libs/reactor/src/native/winui/bindings.rs:2530-2537 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:955 — crates/libs/reactor/src/native/winui/bindings.rs:955-962 | crates/libs/reactor/src/native/winui/bindings.rs:2520-2527 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:1285 — crates/libs/reactor/src/native/winui/bindings.rs:1285-1292 | crates/libs/reactor/src/native/winui/bindings.rs:1406-1413 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:3827 — crates/libs/reactor/src/native/winui/bindings.rs:3827-3834 | crates/libs/reactor/src/native/winui/bindings.rs:24349-24356 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:22154 — crates/libs/reactor/src/native/winui/bindings.rs:22154-22161 | crates/libs/reactor/src/native/winui/bindings.rs:22229-22236 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:22164 — crates/libs/reactor/src/native/winui/bindings.rs:22164-22171 | crates/libs/reactor/src/native/winui/bindings.rs:30594-30601 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:22446 — crates/libs/reactor/src/native/winui/bindings.rs:22446-22453 | crates/libs/reactor/src/native/winui/bindings.rs:28755-28762 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:22486 — crates/libs/reactor/src/native/winui/bindings.rs:22486-22493 | crates/libs/reactor/src/native/winui/bindings.rs:28654-28661 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:23454 — crates/libs/reactor/src/native/winui/bindings.rs:23454-23461 | crates/libs/reactor/src/native/winui/bindings.rs:30015-30022 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:24122 — crates/libs/reactor/src/native/winui/bindings.rs:24122-24129 | crates/libs/reactor/src/native/winui/bindings.rs:27898-27905 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:24142 — crates/libs/reactor/src/native/winui/bindings.rs:24142-24149 | crates/libs/reactor/src/native/winui/bindings.rs:29575-29582 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:24162 — crates/libs/reactor/src/native/winui/bindings.rs:24162-24169 | crates/libs/reactor/src/native/winui/bindings.rs:27908-27915 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:24172 — crates/libs/reactor/src/native/winui/bindings.rs:24172-24179 | crates/libs/reactor/src/native/winui/bindings.rs:29555-29562 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:25146 — crates/libs/reactor/src/native/winui/bindings.rs:25146-25153 | crates/libs/reactor/src/native/winui/bindings.rs:28644-28651 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • + 47 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 5) · ×70
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/Graphics/Display/mod.rs:861 — crates/libs/windows/src/Windows/Graphics/Display/mod.rs:861-866 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:887-892 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:907-912 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:928-933 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:942-947 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/System/Power/mod.rs:273 — crates/libs/windows/src/Windows/System/Power/mod.rs:273-278 | crates/libs/windows/src/Windows/System/Power/mod.rs:293-298 | crates/libs/windows/src/Windows/System/Power/mod.rs:313-318 | crates/libs/windows/src/Windows/System/Power/mod.rs:333-338 | crates/libs/windows/src/Windows/System/Power/mod.rs:353-358 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:317 — crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:317-322 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:331-336 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:345-350 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:359-364 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:373-378 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1273 — crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1273-1278 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1287-1292 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1301-1306 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1315-1320 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1329-1334 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2362 — crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2362-2367 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2408-2413 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2454-2459 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2500-2505 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2546-2551 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:562 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:562-567 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2748-2753 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:977-982 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6333-6338 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1927-1932 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1292 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1292-1297 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4110-4115 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:6-11 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:880-885 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2744-2749 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4294 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4294-4299 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4538-4543 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4751-4756 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5766-5771 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:367-372 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:35 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:35-40 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs:112-117 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2247-2252 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:2825-2830 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7650-7655 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 28 separate duplicated blocks between them, totalling at least 163 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:368 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:368-373 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2068-2073 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1913-1918 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:913-918 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:519-524 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 14 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:703 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:703-708 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2464-2469 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:441-446 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2021-2026 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:710-715 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 27 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:715 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:715-720 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2476-2481 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2033-2038 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:728-733 | crates/libs/windows/src/Windows/Management/Update/mod.rs:825-830 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 27 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1654 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1654-1659 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1134-1139 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1946-1951 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:841-846 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1942-1947 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1939 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1939-1944 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:842-847 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1096-1101 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1695-1700 | crates/libs/windows/src/Windows/Storage/mod.rs:5325-5330 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:624 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:624-629 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:712-717 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2316-2321 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:182-187 | crates/libs/windows/src/Windows/System/mod.rs:469-474 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/System/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1042 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1042-1047 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:362-367 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:478-483 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:681-686 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:336-341 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4086 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4086-4091 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4468-4473 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4697-4702 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4928-4933 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:3214-3219 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4596 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4596-4601 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:18-23 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:874-879 | crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs:206-211 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3487-3492 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:17 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:17-22 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:106-111 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1280-1285 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1565-1570 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:444-449 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3123 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3123-3128 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1500-1505 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:3020-3025 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4366-4371 | crates/libs/windows/src/Windows/Media/mod.rs:525-530 — `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:147 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:147-152 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1158-1163 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:495-500 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:946-951 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:3272-3277 — `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 19 separate duplicated blocks between them, totalling at least 113 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:109 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:109-114 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:184-189 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:262-267 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:349-354 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:157-162 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:492 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:492-497 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2598-2603 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:451-456 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:41-46 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:753-758 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 47 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:501 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:501-506 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2604-2609 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:499-504 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:59-64 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7544-7549 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 47 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:244 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:244-249 | crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs:66-71 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1424-1429 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2711-2716 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2347-2352 — there are 5 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart.
  • + 45 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×60
  • Hotspot: crates/libs/clang/src/lib.rs crates/libs/clang/src/lib.rs:773 — crates/libs/clang/src/lib.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 181 in Snapshot::plan at line 773. 2 of those changes were fix/bug commits, and the other 25 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/clang/src/lib.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/reactor/src/native/winui/mod.rs crates/libs/reactor/src/native/winui/mod.rs:1713 — crates/libs/reactor/src/native/winui/mod.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 182 in WinUiRuntime::apply_one at line 1713. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/reactor/src/native/winui/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/tools/reactor/src/schema.rs crates/tools/reactor/src/schema.rs:768 — crates/tools/reactor/src/schema.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 131 in Schema::resolve at line 768. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/tools/reactor/src/schema.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/types/method.rs crates/libs/bindgen/src/types/method.rs:347 — crates/libs/bindgen/src/types/method.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 92 in Method::write at line 347. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/types/method.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/types/cpp_method.rs crates/libs/bindgen/src/types/cpp_method.rs:85 — crates/libs/bindgen/src/types/cpp_method.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in CppMethod::new at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/types/cpp_method.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/types/mod.rs crates/libs/bindgen/src/types/mod.rs:505 — crates/libs/bindgen/src/types/mod.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in Type::write_name at line 505. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/types/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs:3625 — crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in IUIAutomationElement_Vtbl::new at line 3625. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/tools/reactor/src/generate_winui.rs crates/tools/reactor/src/generate_winui.rs:1022 — crates/tools/reactor/src/generate_winui.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in tool_reactor::generate_winui::generate_event_arm at line 1022. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/tools/reactor/src/generate_winui.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/reactor/src/core/pump/native_work.rs crates/libs/reactor/src/core/pump/native_work.rs:92 — crates/libs/reactor/src/core/pump/native_work.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in Pump::dispatch_events at line 92. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/reactor/src/core/pump/native_work.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/reactor/src/core/pump/planner/view.rs crates/libs/reactor/src/core/pump/planner/view.rs:69 — crates/libs/reactor/src/core/pump/planner/view.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in Pump::reconcile_planned_view at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/reactor/src/core/pump/planner/view.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/type_closure.rs crates/libs/bindgen/src/type_closure.rs:131 — crates/libs/bindgen/src/type_closure.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in Type::combine_closure at line 131. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/type_closure.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/tools/reactor/src/generate.rs crates/tools/reactor/src/generate.rs:1363 — crates/tools/reactor/src/generate.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in tool_reactor::generate::generate_element at line 1363. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/tools/reactor/src/generate.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/reactor/src/app/mod.rs crates/libs/reactor/src/app/mod.rs:652 — crates/libs/reactor/src/app/mod.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ComponentLoop::live_controlled_feedback_native_finish at line 652. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/reactor/src/app/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/rdl/src/reader/mod.rs crates/libs/rdl/src/reader/mod.rs:1041 — crates/libs/rdl/src/reader/mod.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in Encoder::encode_path at line 1041. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/rdl/src/reader/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:27822 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in IDebugControl6_Vtbl::new at line 27822. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/types/interface.rs crates/libs/bindgen/src/types/interface.rs:207 — crates/libs/bindgen/src/types/interface.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in Interface::write at line 207. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/types/interface.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/windows/src/Windows/Win32/iads/mod.rs crates/libs/windows/src/Windows/Win32/iads/mod.rs:12070 — crates/libs/windows/src/Windows/Win32/iads/mod.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in IADsUser_Vtbl::new at line 12070. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/windows/src/Windows/Win32/iads/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/types/cpp_const.rs crates/libs/bindgen/src/types/cpp_const.rs:52 — crates/libs/bindgen/src/types/cpp_const.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in CppConst::write at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/types/cpp_const.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/tools/win32/src/main.rs crates/tools/win32/src/main.rs:1164 — crates/tools/win32/src/main.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in tool_win32::scrape_um_arch at line 1164. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/tools/win32/src/main.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/samples/windows/dcomp/src/main.rs crates/samples/windows/dcomp/src/main.rs:1 — crates/samples/windows/dcomp/src/main.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in windows_dcomp::main at line 1. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/samples/windows/dcomp/src/main.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/lib.rs crates/libs/bindgen/src/lib.rs:454 — crates/libs/bindgen/src/lib.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Bindgen::write at line 454. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/lib.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/tools/reactor/src/metadata.rs crates/tools/reactor/src/metadata.rs:95 — crates/tools/reactor/src/metadata.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in MetadataResolver::load at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/tools/reactor/src/metadata.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/rdl/src/writer/mod.rs crates/libs/rdl/src/writer/mod.rs:122 — crates/libs/rdl/src/writer/mod.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Writer::write at line 122. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/rdl/src/writer/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/window/src/window.rs crates/libs/window/src/window.rs:393 — crates/libs/window/src/window.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in windows_window::window::wndproc at line 393. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/window/src/window.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: crates/libs/bindgen/src/types/cpp_interface.rs crates/libs/bindgen/src/types/cpp_interface.rs:54 — crates/libs/bindgen/src/types/cpp_interface.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in CppInterface::write at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-20..2026-09-18, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-20 21:54:28 -05:00' --until='2026-09-18 21:54:28 -05:00' --full-history --no-merges -- crates/libs/bindgen/src/types/cpp_interface.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 35 more in this group — see findings.md.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×45
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/collections/src/bindings.rs:711 — crates/libs/collections/src/bindings.rs:711-868 | crates/libs/collections/src/bindings.rs:1201-1298 | crates/libs/collections/src/bindings.rs:2165-2407 | crates/libs/collections/src/bindings.rs:2512-2557 | crates/libs/collections/src/bindings.rs:2704-2811 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/reactor/src/core/pump/planner/view.rs:1350 — crates/libs/reactor/src/core/pump/planner/view.rs:1350-1401 | crates/libs/reactor/src/core/pump/planner/view.rs:1410-1438 | crates/libs/reactor/src/core/pump/planner/view.rs:1448-1498 | crates/libs/reactor/src/core/pump/planner/view.rs:1507-1535 | crates/libs/reactor/src/core/pump/planner/view.rs:1544-1714 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:5582 — crates/libs/reactor/src/native/winui/bindings.rs:5582-5591 | crates/libs/reactor/src/native/winui/bindings.rs:12534-12543 | crates/libs/reactor/src/native/winui/bindings.rs:13090-13099 | crates/libs/reactor/src/native/winui/bindings.rs:16299-16308 | crates/libs/reactor/src/native/winui/bindings.rs:16405-16414 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:22372 — crates/libs/reactor/src/native/winui/bindings.rs:22372-22381 | crates/libs/reactor/src/native/winui/bindings.rs:24556-24565 | crates/libs/reactor/src/native/winui/bindings.rs:25521-25530 | crates/libs/reactor/src/native/winui/bindings.rs:25789-25798 | crates/libs/reactor/src/native/winui/bindings.rs:25975-25984 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7461 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7461-7467 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7546-7552 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2966-2972 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3908-3914 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3997-4003 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:295 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:295-300 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:288-293 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:360-365 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:582-587 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1113-1118 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:390 — crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:390-396 | crates/libs/windows/src/Windows/UI/Core/mod.rs:562-568 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1019-1025 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1737-1743 | crates/libs/windows/src/Windows/UI/Input/Core/mod.rs:63-69 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1020 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1020-1026 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1124-1130 | crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs:249-255 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:357-363 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1161-1167 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:370 — crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:370-376 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:518-524 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:599-605 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:674-680 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:895-901 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:46 — crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:46-52 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:67-73 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:299-305 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1685-1691 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1903-1909 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:53 — crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:53-59 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:74-80 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:306-312 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1692-1698 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1910-1916 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:60 — crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:60-66 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:81-87 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:313-319 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1699-1705 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1917-1923 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Graphics/Display/mod.rs:860 — crates/libs/windows/src/Windows/Graphics/Display/mod.rs:860-870 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:886-896 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:906-916 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:927-937 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:941-951 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Audio/mod.rs:14 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:14-20 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:421-427 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:748-754 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3267-3273 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4536-4542 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Audio/mod.rs:42 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:42-48 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:449-455 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:776-782 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2196-2202 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4564-4570 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Capture/mod.rs:7552 — crates/libs/windows/src/Windows/Media/Capture/mod.rs:7552-7558 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:132-138 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:296-302 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1374-1380 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2380-2386 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Core/mod.rs:327 — crates/libs/windows/src/Windows/Media/Core/mod.rs:327-333 | crates/libs/windows/src/Windows/Media/Core/mod.rs:841-847 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3585-3591 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5878-5884 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6375-6381 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Core/mod.rs:338 — crates/libs/windows/src/Windows/Media/Core/mod.rs:338-344 | crates/libs/windows/src/Windows/Media/Core/mod.rs:852-858 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3596-3602 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5889-5895 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6386-6392 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Devices/mod.rs:1050 — crates/libs/windows/src/Windows/Media/Devices/mod.rs:1050-1055 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1114-1119 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1311-1316 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3843-3848 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4486-4491 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2384 — crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2384-2390 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2461-2467 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2544-2550 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2603-2609 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2958-2964 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2395 — crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2395-2401 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2472-2478 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2555-2561 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2614-2620 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2969-2975 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:236 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:236-242 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:812-818 | crates/libs/windows/src/Windows/Storage/mod.rs:4544-4550 | crates/libs/windows/src/Windows/Storage/mod.rs:4975-4981 | crates/libs/windows/src/Windows/UI/Text/mod.rs:3858-3864 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Storage/mod.rs:1647 — crates/libs/windows/src/Windows/Storage/mod.rs:1647-1653 | crates/libs/windows/src/Windows/Storage/mod.rs:2187-2193 | crates/libs/windows/src/Windows/Storage/mod.rs:2828-2834 | crates/libs/windows/src/Windows/Storage/mod.rs:4512-4518 | crates/libs/windows/src/Windows/Storage/mod.rs:4944-4950 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Storage/mod.rs:1654 — crates/libs/windows/src/Windows/Storage/mod.rs:1654-1660 | crates/libs/windows/src/Windows/Storage/mod.rs:2194-2200 | crates/libs/windows/src/Windows/Storage/mod.rs:2835-2841 | crates/libs/windows/src/Windows/Storage/mod.rs:4519-4525 | crates/libs/windows/src/Windows/Storage/mod.rs:4951-4957 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) crates/libs/windows/src/Windows/Storage/mod.rs:1661 — crates/libs/windows/src/Windows/Storage/mod.rs:1661-1667 | crates/libs/windows/src/Windows/Storage/mod.rs:2201-2207 | crates/libs/windows/src/Windows/Storage/mod.rs:2842-2848 | crates/libs/windows/src/Windows/Storage/mod.rs:4526-4532 | crates/libs/windows/src/Windows/Storage/mod.rs:4958-4964 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • + 20 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×42
  • Duplicated block (10 lines × 2) crates/libs/collections/src/bindings.rs:249 — crates/libs/collections/src/bindings.rs:249-258 | crates/libs/collections/src/bindings.rs:269-278 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/collections/src/bindings.rs:576 — crates/libs/collections/src/bindings.rs:576-585 | crates/libs/collections/src/bindings.rs:1099-1108 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/collections/src/bindings.rs:600 — crates/libs/collections/src/bindings.rs:600-609 | crates/libs/collections/src/bindings.rs:1123-1132 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/collections/src/bindings.rs:1973 — crates/libs/collections/src/bindings.rs:1973-1982 | crates/libs/collections/src/bindings.rs:2607-2616 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/collections/src/bindings.rs:2232 — crates/libs/collections/src/bindings.rs:2232-2241 | crates/libs/collections/src/bindings.rs:2750-2759 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/collections/src/bindings.rs:2342 — crates/libs/collections/src/bindings.rs:2342-2351 | crates/libs/collections/src/bindings.rs:2776-2785 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/composition/src/bindings.rs:1924 — crates/libs/composition/src/bindings.rs:1924-1933 | crates/libs/composition/src/bindings_lifted.rs:1673-1682 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) crates/libs/composition/src/bindings.rs:1986 — crates/libs/composition/src/bindings.rs:1986-1995 | crates/libs/composition/src/bindings_lifted.rs:1735-1744 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) crates/libs/composition/src/bindings.rs:2013 — crates/libs/composition/src/bindings.rs:2013-2022 | crates/libs/composition/src/bindings_lifted.rs:1762-1771 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) crates/libs/composition/src/bindings.rs:2218 — crates/libs/composition/src/bindings.rs:2218-2227 | crates/libs/composition/src/bindings_lifted.rs:1966-1975 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) crates/libs/composition/src/bindings.rs:2479 — crates/libs/composition/src/bindings.rs:2479-2488 | crates/libs/composition/src/bindings_lifted.rs:2128-2137 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) crates/libs/core/src/imp/bindings.rs:73 — crates/libs/core/src/imp/bindings.rs:73-82 | crates/libs/core/src/imp/bindings.rs:139-148 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/core/src/imp/ref_count.rs:23 — crates/libs/core/src/imp/ref_count.rs:23-32 | crates/libs/strings/src/ref_count.rs:17-26 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) crates/libs/future/src/bindings.rs:1082 — crates/libs/future/src/bindings.rs:1082-1091 | crates/libs/future/src/bindings.rs:1118-1127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/future/src/bindings.rs:1097 — crates/libs/future/src/bindings.rs:1097-1106 | crates/libs/future/src/bindings.rs:1133-1142 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/future/src/bindings.rs:1108 — crates/libs/future/src/bindings.rs:1108-1117 | crates/libs/future/src/bindings.rs:1845-1854 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/reactor/src/core/pump/mod.rs:826 — crates/libs/reactor/src/core/pump/mod.rs:826-835 | crates/libs/reactor/src/core/pump/mod.rs:836-845 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/reactor/src/core/pump/planner/topology.rs:123 — crates/libs/reactor/src/core/pump/planner/topology.rs:123-133 | crates/libs/reactor/src/core/pump/planner/topology.rs:794-803 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1352 — crates/libs/reactor/src/core/pump/planner/view.rs:1352-1361 | crates/libs/reactor/src/core/pump/planner/view.rs:1450-1459 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1362 — crates/libs/reactor/src/core/pump/planner/view.rs:1362-1371 | crates/libs/reactor/src/core/pump/planner/view.rs:1460-1469 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:6473 — crates/libs/reactor/src/native/winui/bindings.rs:6473-6482 | crates/libs/reactor/src/native/winui/bindings.rs:8554-8563 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/reference/src/bindings.rs:297 — crates/libs/reference/src/bindings.rs:297-306 | crates/libs/windows/src/Windows/Foundation/mod.rs:834-843 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) crates/libs/reference/src/bindings.rs:452 — crates/libs/reference/src/bindings.rs:452-461 | crates/libs/reference/src/bindings.rs:599-608 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4306 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4306-4315 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6655-6664 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4895 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4895-4904 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5548-5557 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • + 17 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×40
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:67 — crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:67-72 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:180-185 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:386-391 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1045-1050 | crates/libs/windows/src/Windows/Storage/mod.rs:345-350 | crates/libs/windows/src/Windows/Storage/mod.rs:514-519 — before extracting anything, compare `crates/libs/windows/src/Windows/Foundation/Collections/mod.rs` and `crates/libs/windows/src/Windows/Security/Credentials/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:104 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:104-109 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:339-344 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:621-626 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1528-1533 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1810-1815 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2083-2088 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Storage/Search/mod.rs:1677 — crates/libs/windows/src/Windows/Storage/Search/mod.rs:1677-1682 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1692-1697 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1774-1779 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1789-1794 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1871-1876 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1886-1891 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:223 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:223-228 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:17-22 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:6-11 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:170-175 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:148-153 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:464-469 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:235 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:235-240 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:24-29 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7628-7633 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2922-2927 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1417-1422 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:3217-3222 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/Storage/Provider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/AI/Actions/mod.rs:336 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:336-341 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1756-1761 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1421-1426 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:351-356 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:705-710 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:923-928 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/Management/Update/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:350 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:350-355 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2050-2055 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1928-1933 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:889-894 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:210-215 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:525-530 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 14 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4403 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:4403-4408 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:2953-2958 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3030-3035 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3052-3057 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5653-5658 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:6274-6279 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2781 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2781-2786 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1696-1701 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1733-1738 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1770-1775 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1950-1955 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:2285-2290 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:661 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:661-666 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1964-1969 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:925-930 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:216-221 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:251-256 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:504-509 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 35 separate duplicated blocks between them, totalling at least 204 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:454 — crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:454-459 | crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs:136-141 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:462-467 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:27-32 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:638-643 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:789-794 — there are 6 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1580 — crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1580-1585 | crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs:103-108 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:675-680 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:72-77 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1835-1840 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2251-2256 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Preview/mod.rs:72 — crates/libs/windows/src/Windows/ApplicationModel/Preview/mod.rs:72-77 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2625-2630 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:687-692 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:1235-1240 | crates/libs/windows/src/Windows/Storage/mod.rs:5894-5899 | crates/libs/windows/src/Windows/System/Inventory/mod.rs:44-49 — `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:461 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:461-466 | crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs:6-11 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:734-739 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1601-1606 | crates/libs/windows/src/Windows/Globalization/mod.rs:80-85 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:362-367 — `crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs` and `crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:666 — crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:666-671 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1357-1362 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2701-2706 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:609-614 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:571-576 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1511-1516 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/mod.rs` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:697 — crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:697-702 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:969-974 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1185-1190 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:34-39 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:392-397 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:1227-1232 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:142 — crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:142-147 | crates/libs/windows/src/Windows/Devices/Gpio/mod.rs:358-363 | crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:308-313 | crates/libs/windows/src/Windows/Devices/I2c/mod.rs:40-45 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:298-303 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:292-297 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs` and `crates/libs/windows/src/Windows/Devices/Gpio/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Haptics/mod.rs:549 — crates/libs/windows/src/Windows/Devices/Haptics/mod.rs:549-554 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1104-1109 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3309-3314 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3340-3345 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3371-3376 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3809-3814 — before extracting anything, compare `crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs` and `crates/libs/windows/src/Windows/UI/Input/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:436 — crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:436-441 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:553-558 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:907-912 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:211-216 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6291-6296 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1368-1373 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1488 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1488-1493 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:54-59 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:492-497 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:1117-1122 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3868-3873 | crates/libs/windows/src/Windows/Win32/control/mod.rs:244-249 — `crates/libs/windows/src/Windows/Media/PlayTo/mod.rs` and `crates/libs/windows/src/Windows/Media/Playback/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:359 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:359-364 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1411-1416 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7978-7983 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8940-8945 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:729-734 | crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs:967-972 — there are 6 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Power/mod.rs:12 — crates/libs/windows/src/Windows/Devices/Power/mod.rs:12-17 | crates/libs/windows/src/Windows/System/Diagnostics/mod.rs:393-398 | crates/libs/windows/src/Windows/System/Diagnostics/mod.rs:547-552 | crates/libs/windows/src/Windows/System/Diagnostics/mod.rs:625-630 | crates/libs/windows/src/Windows/System/Diagnostics/mod.rs:739-744 | crates/libs/windows/src/Windows/System/Diagnostics/mod.rs:855-860 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:638 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:638-643 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2020-2025 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2288-2293 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2347-2352 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2545-2550 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2692-2697 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` and `crates/libs/windows/src/Windows/Networking/Sockets/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2108 — crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2108-2113 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2350-2355 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2408-2413 | crates/libs/windows/src/Windows/Management/Update/mod.rs:902-907 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2166-2171 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2798-2803 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 6) crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:106 — crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:106-111 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:98-103 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6036-6041 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6094-6099 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6128-6133 | crates/libs/windows/src/Windows/Storage/Compression/mod.rs:33-38 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 15 more in this group — see findings.md.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×37
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/collections/src/bindings.rs:654 — crates/libs/collections/src/bindings.rs:654-664 | crates/libs/collections/src/bindings.rs:1147-1157 | crates/libs/collections/src/bindings.rs:1407-1417 | crates/libs/collections/src/bindings.rs:1680-1690 | crates/libs/collections/src/bindings.rs:2109-2119 | crates/libs/collections/src/bindings.rs:2659-2669 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/future/src/bindings.rs:841 — crates/libs/future/src/bindings.rs:841-884 | crates/libs/future/src/bindings.rs:1080-1179 | crates/libs/future/src/bindings.rs:1515-1583 | crates/libs/future/src/bindings.rs:1812-1931 | crates/libs/reactor/src/native/winui/bindings.rs:5316-5336 | crates/libs/reactor/src/native/winui/bindings.rs:9147-9187 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:485 — crates/libs/reactor/src/native/winui/bindings.rs:485-494 | crates/libs/reactor/src/native/winui/bindings.rs:1273-1282 | crates/libs/reactor/src/native/winui/bindings.rs:1942-1951 | crates/libs/reactor/src/native/winui/bindings.rs:24819-24828 | crates/libs/reactor/src/native/winui/bindings.rs:26512-26521 | crates/libs/reactor/src/native/winui/bindings.rs:29101-29110 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:2304 — crates/libs/reactor/src/native/winui/bindings.rs:2304-2313 | crates/libs/reactor/src/native/winui/bindings.rs:22454-22463 | crates/libs/reactor/src/native/winui/bindings.rs:23668-23677 | crates/libs/reactor/src/native/winui/bindings.rs:25061-25070 | crates/libs/reactor/src/native/winui/bindings.rs:28763-28772 | crates/libs/reactor/src/native/winui/bindings.rs:29533-29542 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:11261 — crates/libs/reactor/src/native/winui/bindings.rs:11261-11270 | crates/libs/reactor/src/native/winui/bindings.rs:12004-12013 | crates/libs/reactor/src/native/winui/bindings.rs:12063-12072 | crates/libs/reactor/src/native/winui/bindings.rs:12135-12144 | crates/libs/reactor/src/native/winui/bindings.rs:12354-12363 | crates/libs/reactor/src/native/winui/bindings.rs:16395-16404 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:21849 — crates/libs/reactor/src/native/winui/bindings.rs:21849-21924 | crates/libs/windows/src/Windows/Foundation/mod.rs:1423-1443 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:71-116 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:157-191 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1004-1020 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2620-2691 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1598 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1598-1604 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:654-660 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:836-842 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:278-284 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:485-491 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3075-3081 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6060 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6060-6092 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:92-138 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2645-2711 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1941-1972 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:367-448 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:102-169 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:486 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:486-492 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:613-619 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:234-240 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2414-2420 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1960-1966 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2955-2961 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1222 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1222-1227 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2375-2380 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2858-2863 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2154-2159 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:478-483 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:784-789 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2584 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2584-2590 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2696-2702 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:142-148 | crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs:191-197 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1722-1728 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1579-1585 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1330 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1330-1336 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1984-1990 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3478-3484 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:215-221 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:948-954 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2518-2524 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1337 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1337-1343 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1991-1997 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3485-3491 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:222-228 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:955-961 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2525-2531 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1355 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1355-1361 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:2009-2015 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3503-3509 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:240-246 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:973-979 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2543-2549 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Input/mod.rs:521 — crates/libs/windows/src/Windows/Devices/Input/mod.rs:521-527 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3277-3283 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3502-3508 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3708-3714 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3777-3783 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3847-3853 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:754 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:754-764 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2366-2376 | crates/libs/windows/src/Windows/Gaming/UI/mod.rs:168-178 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:270-280 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2230-2240 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2627-2637 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1358 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1358-1364 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1530-1536 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2560-2566 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2788-2794 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2920-2926 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2998-3004 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1372 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1372-1378 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1544-1550 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2574-2580 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2802-2808 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2934-2940 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3012-3018 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1379 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1379-1385 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1551-1557 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2581-2587 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2809-2815 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2941-2947 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3019-3025 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1386 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1386-1392 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1558-1564 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2588-2594 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2816-2822 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2948-2954 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3026-3032 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:102 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:102-113 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:337-348 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:619-630 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1526-1537 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1808-1819 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2081-2092 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:114 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:114-120 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:349-355 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:631-637 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1538-1544 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1820-1826 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2093-2099 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:121 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:121-127 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:356-362 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:638-644 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1545-1551 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1827-1833 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2100-2106 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:759 — crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:759-765 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:897-903 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1150-1156 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1237-1243 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1920-1926 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2915-2921 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:194 — crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:194-200 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:624-630 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1833-1839 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2413-2419 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3944-3950 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:129-135 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • + 12 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 5) · ×36
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7463 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7463-7467 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7548-7552 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2968-2972 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3910-3914 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3999-4003 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/Notifications/mod.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:296 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:296-300 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:289-293 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:361-365 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:583-587 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1114-1118 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:392 — crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:392-396 | crates/libs/windows/src/Windows/UI/Core/mod.rs:564-568 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1021-1025 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1739-1743 | crates/libs/windows/src/Windows/UI/Input/Core/mod.rs:65-69 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs` and `crates/libs/windows/src/Windows/UI/Core/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1022 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1022-1026 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1126-1130 | crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs:251-255 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:359-363 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1163-1167 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:372 — crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:372-376 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:520-524 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:601-605 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:676-680 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:897-901 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1602 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1602-1606 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1817-1821 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2079-2083 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2473-2477 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2654-2658 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:48 — crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:48-52 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:69-73 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:301-305 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1687-1691 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1905-1909 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:55 — crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:55-59 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:76-80 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:308-312 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1694-1698 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1912-1916 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:62 — crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:62-66 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:83-87 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:315-319 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1701-1705 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1919-1923 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Media/Audio/mod.rs:16 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:16-20 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:423-427 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:750-754 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3269-3273 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4538-4542 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Media/Audio/mod.rs:44 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:44-48 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:451-455 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:778-782 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2198-2202 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4566-4570 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Media/Capture/mod.rs:7554 — crates/libs/windows/src/Windows/Media/Capture/mod.rs:7554-7558 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:134-138 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:298-302 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1376-1380 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2382-2386 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Media/Core/mod.rs:329 — crates/libs/windows/src/Windows/Media/Core/mod.rs:329-333 | crates/libs/windows/src/Windows/Media/Core/mod.rs:843-847 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3587-3591 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5880-5884 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6377-6381 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Media/Core/mod.rs:340 — crates/libs/windows/src/Windows/Media/Core/mod.rs:340-344 | crates/libs/windows/src/Windows/Media/Core/mod.rs:854-858 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3598-3602 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5891-5895 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6388-6392 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Media/Devices/mod.rs:1051 — crates/libs/windows/src/Windows/Media/Devices/mod.rs:1051-1055 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1115-1119 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1312-1316 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3844-3848 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4487-4491 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2386 — crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2386-2390 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2463-2467 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2546-2550 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2605-2609 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2960-2964 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2397 — crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2397-2401 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2474-2478 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2557-2561 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2616-2620 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2971-2975 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:238 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:238-242 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:814-818 | crates/libs/windows/src/Windows/Storage/mod.rs:4546-4550 | crates/libs/windows/src/Windows/Storage/mod.rs:4977-4981 | crates/libs/windows/src/Windows/UI/Text/mod.rs:3860-3864 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Storage/mod.rs:1649 — crates/libs/windows/src/Windows/Storage/mod.rs:1649-1653 | crates/libs/windows/src/Windows/Storage/mod.rs:2189-2193 | crates/libs/windows/src/Windows/Storage/mod.rs:2830-2834 | crates/libs/windows/src/Windows/Storage/mod.rs:4514-4518 | crates/libs/windows/src/Windows/Storage/mod.rs:4946-4950 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Storage/mod.rs:1656 — crates/libs/windows/src/Windows/Storage/mod.rs:1656-1660 | crates/libs/windows/src/Windows/Storage/mod.rs:2196-2200 | crates/libs/windows/src/Windows/Storage/mod.rs:2837-2841 | crates/libs/windows/src/Windows/Storage/mod.rs:4521-4525 | crates/libs/windows/src/Windows/Storage/mod.rs:4953-4957 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/Storage/mod.rs:1663 — crates/libs/windows/src/Windows/Storage/mod.rs:1663-1667 | crates/libs/windows/src/Windows/Storage/mod.rs:2203-2207 | crates/libs/windows/src/Windows/Storage/mod.rs:2844-2848 | crates/libs/windows/src/Windows/Storage/mod.rs:4528-4532 | crates/libs/windows/src/Windows/Storage/mod.rs:4960-4964 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/UI/Core/mod.rs:351 — crates/libs/windows/src/Windows/UI/Core/mod.rs:351-355 | crates/libs/windows/src/Windows/UI/Core/mod.rs:868-872 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1503-1507 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2470-2474 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3506-3510 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/UI/Core/mod.rs:1587 — crates/libs/windows/src/Windows/UI/Core/mod.rs:1587-1591 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2679-2683 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3590-3594 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3186-3190 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4210-4214 — before extracting anything, compare `crates/libs/windows/src/Windows/UI/Core/mod.rs` and `crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/UI/Core/mod.rs:1601 — crates/libs/windows/src/Windows/UI/Core/mod.rs:1601-1605 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2693-2697 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3604-3608 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3171-3175 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4195-4199 — before extracting anything, compare `crates/libs/windows/src/Windows/UI/Core/mod.rs` and `crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) crates/libs/windows/src/Windows/UI/Core/mod.rs:1615 — crates/libs/windows/src/Windows/UI/Core/mod.rs:1615-1619 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2707-2711 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3618-3622 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3201-3205 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4225-4229 — before extracting anything, compare `crates/libs/windows/src/Windows/UI/Core/mod.rs` and `crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 11 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 7) · ×30
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:495 — crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:495-500 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:549-554 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:563-568 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:605-610 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:661-666 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1357-1362 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1399-1404 — there are 7 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/UI/Core/mod.rs:3547 — crates/libs/windows/src/Windows/UI/Core/mod.rs:3547-3552 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3561-3566 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3575-3580 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3589-3594 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3603-3608 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3617-3622 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3645-3650 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:75 — crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:75-80 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:90-95 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:105-110 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:120-125 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:135-140 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:150-155 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:165-170 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:787 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:787-792 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3126-3131 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1947-1952 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:4080-4085 | crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs:181-186 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:821-826 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2147-2152 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6261 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6261-6266 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7844-7849 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:288-293 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:435-440 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:507-512 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3121-3126 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4283-4288 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1269 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1269-1274 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:2540-2545 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1329-1334 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:3119-3124 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7526-7531 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4301-4306 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5814-5819 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 27 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1505 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1505-1510 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:952-957 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:1073-1078 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1805-1810 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:651-656 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1458-1463 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1792-1797 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 21 separate duplicated blocks between them, totalling at least 123 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1534 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1534-1539 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:981-986 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:1102-1107 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:1456-1461 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:1567-1572 | crates/libs/windows/src/Windows/System/mod.rs:1237-1242 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11174-11179 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 21 separate duplicated blocks between them, totalling at least 123 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1875 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1875-1880 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:287-292 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:776-781 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1030-1035 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1611-1616 | crates/libs/windows/src/Windows/Storage/mod.rs:5240-5245 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3114-3119 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:100 — crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:100-105 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:142-147 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:188-193 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2567-2572 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:544-549 | crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs:185-190 | crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs:212-217 — there are 7 copies across 5 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:44 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:44-49 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:133-138 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1319-1324 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1583-1588 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1207-1212 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:372-377 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:705-710 — `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 105 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:256 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:256-261 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1068-1073 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:920-925 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:127-132 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:234-239 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3762-3767 | crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs:348-353 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:268 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:268-273 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1086-1091 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1192-1197 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2607-2612 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:374-379 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1532-1537 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2754-2759 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1396 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1396-1401 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4297-4302 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:581-586 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:160-165 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:476-481 | crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs:184-189 | crates/libs/windows/src/Windows/Media/Core/mod.rs:394-399 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1706 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1706-1711 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:868-873 | crates/libs/windows/src/Windows/Data/Text/mod.rs:535-540 | crates/libs/windows/src/Windows/Globalization/mod.rs:2594-2599 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2979-2984 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3578-3583 | crates/libs/windows/src/Windows/UI/Text/mod.rs:38-43 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:430 — crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:430-435 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:802-807 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1410-1415 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3413-3418 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5151-5156 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2401-2406 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:4206-4211 — `crates/libs/windows/src/Windows/Win32/control/mod.rs` and `crates/libs/windows/src/Windows/Win32/exdisp/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 97 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:108 — crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:108-113 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:303-308 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1845-1850 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:104-109 | crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs:220-225 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7115-7120 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7690-7695 — there are 7 copies across 6 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:220 — crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:220-225 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:175-180 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:975-980 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1722-1727 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2666-2671 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:869-874 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:1084-1089 — `crates/libs/windows/src/Windows/Media/Casting/mod.rs` and `crates/libs/windows/src/Windows/Media/PlayTo/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 57 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:33 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:33-38 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:883-888 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1061-1066 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1322-1327 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1578-1583 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1736-1741 | crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs:365-370 — `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Devices/Custom/mod.rs:7 — crates/libs/windows/src/Windows/Devices/Custom/mod.rs:7-12 | crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs:277-282 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:511-516 | crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs:931-936 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2767-2772 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3187-3192 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3808-3813 — there are 7 copies across 5 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:12 — crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:12-17 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:75-80 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:130-135 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:203-208 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:525-530 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:609-614 | crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs:254-259 — there are 7 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:18 — crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:18-23 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:81-86 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:136-141 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:209-214 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:531-536 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:615-620 | crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs:248-253 — there are 7 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Devices/Input/mod.rs:424 — crates/libs/windows/src/Windows/Devices/Input/mod.rs:424-429 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:556-561 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:107-112 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:942-947 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:2777-2782 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3521-3526 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:744-749 — there are 7 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:577 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:577-582 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1155-1160 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1945-1950 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3009-3014 | crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs:617-622 | crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs:870-875 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2833-2838 — before extracting anything, compare `crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs` and `crates/libs/windows/src/Windows/UI/Input/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 7) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:221 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:221-226 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:650-655 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1651-1656 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1772-1777 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2056-2061 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2511-2516 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3785-3790 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` and `crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 5 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×28
  • Duplicated block (7 lines × 2) crates/libs/bindgen/src/types/cpp_interface.rs:239 — crates/libs/bindgen/src/types/cpp_interface.rs:239-245 | crates/libs/bindgen/src/types/interface.rs:595-601 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) crates/libs/bindgen/src/types/interface.rs:424 — crates/libs/bindgen/src/types/interface.rs:424-430 | crates/libs/bindgen/src/types/interface.rs:453-462 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/bindgen/src/types/method.rs:477 — crates/libs/bindgen/src/types/method.rs:477-483 | crates/libs/bindgen/src/types/method.rs:504-510 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/collections/src/bindings.rs:713 — crates/libs/collections/src/bindings.rs:713-719 | crates/libs/collections/src/bindings.rs:757-763 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/collections/src/bindings.rs:1203 — crates/libs/collections/src/bindings.rs:1203-1209 | crates/libs/collections/src/bindings.rs:1247-1253 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/core/src/imp/bindings.rs:103 — crates/libs/core/src/imp/bindings.rs:103-109 | crates/libs/core/src/imp/bindings.rs:169-175 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/reactor/src/core/engine/mod.rs:886 — crates/libs/reactor/src/core/engine/mod.rs:886-892 | crates/libs/reactor/src/core/engine/mod.rs:919-925 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:3005 — crates/libs/reactor/src/native/winui/mod.rs:3005-3011 | crates/libs/reactor/src/native/winui/mod.rs:3432-3438 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2566 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2566-2572 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2678-2684 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2946 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2946-2952 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:3042-3048 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2961 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2961-2967 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:3057-3063 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2304 — crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2304-2310 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3855-3861 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:407 — crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:407-413 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7431-7437 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4222 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4222-4228 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:8615-8621 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4295 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4295-4301 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6360-6366 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4302 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4302-4308 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6371-6377 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5264 — crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5264-5270 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:6138-6144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29299 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29299-29305 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32384-32390 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10030 — crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10030-10036 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10821-10827 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10310 — crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10310-10316 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:11227-11233 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3112 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3112-3118 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:7528-7534 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3143 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3143-3149 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:7557-7563 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3195 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3195-3201 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:7614-7620 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3340 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:3340-3346 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5918-5924 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7803 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7803-7809 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11423-11429 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • + 3 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×27
  • Duplicated block (9 lines × 3) crates/libs/composition/src/bindings.rs:1539 — crates/libs/composition/src/bindings.rs:1539-1547 | crates/libs/composition/src/bindings_lifted.rs:1334-1342 | crates/libs/reactor/src/native/winui/bindings.rs:7573-7581 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/future/src/bindings.rs:1437 — crates/libs/future/src/bindings.rs:1437-1445 | crates/libs/future/src/bindings.rs:1711-1719 | crates/libs/pickers/src/bindings.rs:288-296 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (9 lines × 3) crates/libs/reference/src/bindings.rs:298 — crates/libs/reference/src/bindings.rs:298-306 | crates/libs/windows/src/Windows/Data/Json/mod.rs:177-185 | crates/libs/windows/src/Windows/Foundation/mod.rs:835-843 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/webview/src/bindings.rs:889 — crates/libs/webview/src/bindings.rs:889-897 | crates/libs/webview/src/bindings.rs:1012-1020 | crates/libs/webview/src/bindings.rs:3658-3666 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/webview/src/bindings.rs:2160 — crates/libs/webview/src/bindings.rs:2160-2168 | crates/libs/webview/src/bindings.rs:2221-2229 | crates/libs/webview/src/bindings.rs:3774-3782 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/webview/src/bindings.rs:3313 — crates/libs/webview/src/bindings.rs:3313-3321 | crates/libs/webview/src/bindings.rs:3349-3357 | crates/libs/webview/src/bindings.rs:3385-3393 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/webview/src/bindings.rs:3332 — crates/libs/webview/src/bindings.rs:3332-3340 | crates/libs/webview/src/bindings.rs:3368-3376 | crates/libs/webview/src/bindings.rs:3404-3412 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6065 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6065-6073 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:97-105 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2650-2658 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:2565 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:2565-2573 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:595-603 | crates/libs/windows/src/Windows/Storage/mod.rs:3021-3029 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/Networking/Vpn/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:110 — crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:110-118 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2663-2671 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:686-694 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:118 — crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:118-126 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:697-705 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:139-147 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:552 — crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:552-560 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:927-935 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:391-399 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs` and `crates/libs/windows/src/Windows/Storage/Search/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:707 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:707-715 | crates/libs/windows/src/Windows/Storage/mod.rs:2879-2887 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1119-1127 — before extracting anything, compare `crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:532 — crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:532-540 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1010-1018 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1557-1565 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:545 — crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:545-553 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1023-1031 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1582-1590 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:940 — crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:940-948 | crates/libs/windows/src/Windows/Media/mod.rs:561-569 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1000-1008 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs` and `crates/libs/windows/src/Windows/Media/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1348 — crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1348-1356 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1720-1728 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:157-165 — `crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs` and `crates/libs/windows/src/Windows/Networking/Sockets/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1367 — crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1367-1375 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1739-1747 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:176-184 — `crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs` and `crates/libs/windows/src/Windows/Networking/Sockets/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:454 — crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:454-462 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1754-1762 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:107-115 — before extracting anything, compare `crates/libs/windows/src/Windows/Networking/Vpn/mod.rs` and `crates/libs/windows/src/Windows/Storage/Provider/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/UI/Text/mod.rs:1106 — crates/libs/windows/src/Windows/UI/Text/mod.rs:1106-1114 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2475-2483 | crates/libs/windows/src/Windows/UI/Text/mod.rs:3245-3253 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:208 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:208-216 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:810-818 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2810-2818 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/docobj/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 33 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 3) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6143 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6143-6151 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6408-6416 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6656-6664 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) crates/libs/collections/src/bindings.rs:639 — crates/libs/collections/src/bindings.rs:639-647 | crates/libs/composition/src/bindings.rs:3042-3050 | crates/libs/composition/src/bindings_lifted.rs:2855-2863 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/composition/src/bindings.rs:1628 — crates/libs/composition/src/bindings.rs:1628-1636 | crates/libs/composition/src/bindings_lifted.rs:1422-1430 | crates/libs/reactor/src/native/winui/bindings.rs:5951-5959 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) crates/libs/composition/src/bindings.rs:2746 — crates/libs/composition/src/bindings.rs:2746-2754 | crates/libs/composition/src/bindings_lifted.rs:2559-2567 | crates/libs/reactor/src/native/winui/bindings.rs:20054-20062 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • + 2 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 6) · ×26
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1600 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1600-1604 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:656-660 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:838-842 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:280-284 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:487-491 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3077-3081 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 33 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:488 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:488-492 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:615-619 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:236-240 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2416-2420 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1962-1966 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2957-2961 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1223 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1223-1227 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2376-2380 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2859-2863 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2155-2159 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:479-483 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:785-789 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 14 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2586 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2586-2590 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2698-2702 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:144-148 | crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs:193-197 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1724-1728 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1581-1585 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Storage/Provider/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:323 — crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:323-327 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1447-1451 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3450-3454 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:550-554 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2888-2892 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4475-4479 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs` and `crates/libs/windows/src/Windows/UI/Core/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1332 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1332-1336 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1986-1990 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3480-3484 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:217-221 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:950-954 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2520-2524 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1339 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1339-1343 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1993-1997 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3487-3491 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:224-228 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:957-961 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2527-2531 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1357 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1357-1361 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:2011-2015 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3505-3509 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:242-246 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:975-979 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2545-2549 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Input/mod.rs:523 — crates/libs/windows/src/Windows/Devices/Input/mod.rs:523-527 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3279-3283 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3504-3508 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3710-3714 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3779-3783 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3849-3853 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:756 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:756-760 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2368-2372 | crates/libs/windows/src/Windows/Gaming/UI/mod.rs:170-174 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:272-276 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2232-2236 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2629-2633 — `crates/libs/windows/src/Windows/Devices/Midi/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1360 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1360-1364 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1532-1536 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2562-2566 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2790-2794 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2922-2926 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3000-3004 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1374 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1374-1378 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1546-1550 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2576-2580 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2804-2808 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2936-2940 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3014-3018 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1381 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1381-1385 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1553-1557 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2583-2587 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2811-2815 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2943-2947 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3021-3025 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1388 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1388-1392 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1560-1564 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2590-2594 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2818-2822 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2950-2954 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3028-3032 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:116 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:116-120 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:351-355 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:633-637 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1540-1544 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1822-1826 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2095-2099 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:123 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:123-127 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:358-362 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:640-644 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1547-1551 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1829-1833 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2102-2106 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:761 — crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:761-765 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:899-903 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1152-1156 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1239-1243 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1922-1926 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2917-2921 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:196 — crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:196-200 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:626-630 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1835-1839 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2415-2419 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3946-3950 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:131-135 — `crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs` and `crates/libs/windows/src/Windows/Networking/Sockets/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:212 — crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:212-216 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:642-646 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1851-1855 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2431-2435 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3962-3966 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:147-151 — `crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs` and `crates/libs/windows/src/Windows/Networking/Sockets/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:238 — crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:238-242 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:668-672 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:960-964 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:2309-2313 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1933-1937 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2928-2932 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:316 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:316-320 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:892-896 | crates/libs/windows/src/Windows/Storage/mod.rs:3140-3144 | crates/libs/windows/src/Windows/Storage/mod.rs:3288-3292 | crates/libs/windows/src/Windows/Storage/mod.rs:4554-4558 | crates/libs/windows/src/Windows/Storage/mod.rs:4985-4989 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:346 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:346-350 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:922-926 | crates/libs/windows/src/Windows/Storage/mod.rs:3170-3174 | crates/libs/windows/src/Windows/Storage/mod.rs:3318-3322 | crates/libs/windows/src/Windows/Storage/mod.rs:4584-4588 | crates/libs/windows/src/Windows/Storage/mod.rs:5015-5019 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:353 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:353-357 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:929-933 | crates/libs/windows/src/Windows/Storage/mod.rs:3177-3181 | crates/libs/windows/src/Windows/Storage/mod.rs:3325-3329 | crates/libs/windows/src/Windows/Storage/mod.rs:4591-4595 | crates/libs/windows/src/Windows/Storage/mod.rs:5022-5026 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:47 — crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:47-51 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:121-125 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:566-570 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:733-737 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:873-877 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:1161-1165 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 6) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:324 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:324-328 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:900-904 | crates/libs/windows/src/Windows/Storage/mod.rs:3148-3152 | crates/libs/windows/src/Windows/Storage/mod.rs:3296-3300 | crates/libs/windows/src/Windows/Storage/mod.rs:4562-4566 | crates/libs/windows/src/Windows/Storage/mod.rs:4993-4997 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 1 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×25
  • Duplicated block (11 lines × 2) crates/libs/bindgen/src/filter.rs:482 — crates/libs/bindgen/src/filter.rs:482-492 | crates/libs/bindgen/src/filter.rs:561-571 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/clang/src/extract.rs:1462 — crates/libs/clang/src/extract.rs:1462-1472 | crates/libs/clang/src/extract.rs:1486-1496 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/clang/src/lib.rs:730 — crates/libs/clang/src/lib.rs:730-740 | crates/libs/clang/src/lib.rs:753-763 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/clang/src/lib.rs:956 — crates/libs/clang/src/lib.rs:956-966 | crates/libs/clang/src/lib.rs:977-987 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/collections/src/bindings.rs:748 — crates/libs/collections/src/bindings.rs:748-758 | crates/libs/collections/src/bindings.rs:1238-1248 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/collections/src/bindings.rs:2007 — crates/libs/collections/src/bindings.rs:2007-2017 | crates/libs/collections/src/bindings.rs:2631-2641 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/collections/src/bindings.rs:2179 — crates/libs/collections/src/bindings.rs:2179-2189 | crates/libs/collections/src/bindings.rs:2718-2728 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/composition/src/bindings.rs:1949 — crates/libs/composition/src/bindings.rs:1949-1959 | crates/libs/composition/src/bindings_lifted.rs:1698-1708 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) crates/libs/future/src/bindings.rs:1542 — crates/libs/future/src/bindings.rs:1542-1552 | crates/libs/future/src/bindings.rs:1886-1896 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/future/src/bindings.rs:1814 — crates/libs/future/src/bindings.rs:1814-1824 | crates/libs/future/src/bindings.rs:1855-1865 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/future/src/bindings.rs:1833 — crates/libs/future/src/bindings.rs:1833-1843 | crates/libs/future/src/bindings.rs:1874-1884 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/pickers/src/folder.rs:97 — crates/libs/pickers/src/folder.rs:97-107 | crates/libs/pickers/src/open.rs:132-142 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) crates/libs/rdl/src/writer/mod.rs:156 — crates/libs/rdl/src/writer/mod.rs:156-166 | crates/libs/rdl/src/writer/mod.rs:204-214 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1901 — crates/libs/reactor/src/core/pump/planner/view.rs:1901-1911 | crates/libs/reactor/src/core/pump/planner/view.rs:1946-1956 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:3121 — crates/libs/reactor/src/native/winui/mod.rs:3121-3131 | crates/libs/reactor/src/native/winui/mod.rs:3172-3182 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:3287 — crates/libs/reactor/src/native/winui/mod.rs:3287-3297 | crates/libs/reactor/src/native/winui/mod.rs:3307-3317 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:4500 — crates/libs/reactor/src/native/winui/mod.rs:4500-4510 | crates/libs/reactor/src/native/winui/mod.rs:4547-4557 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/time/src/datetime.rs:337 — crates/libs/time/src/datetime.rs:337-347 | crates/libs/time/src/timespan.rs:337-347 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1475 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1475-1485 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1785-1795 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 82 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (11 lines × 2) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3411 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3411-3421 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5474-5484 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4229 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4229-4239 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:8624-8634 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (11 lines × 2) crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3084 — crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3084-3094 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3238-3248 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:611 — crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:611-621 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:909-919 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/windows/src/Windows/Win32/iads/mod.rs:6124 — crates/libs/windows/src/Windows/Win32/iads/mod.rs:6124-6134 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6397-6407 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) crates/libs/windows/src/Windows/Win32/iads/mod.rs:9671 — crates/libs/windows/src/Windows/Win32/iads/mod.rs:9671-9681 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10948-10958 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×21
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:1227 — crates/libs/composition/src/bindings.rs:1227-1235 | crates/libs/composition/src/bindings.rs:2603-2611 | crates/libs/composition/src/bindings_lifted.rs:1109-1117 | crates/libs/composition/src/bindings_lifted.rs:2416-2424 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:2351 — crates/libs/composition/src/bindings.rs:2351-2359 | crates/libs/composition/src/bindings_lifted.rs:2026-2034 | crates/libs/reactor/src/native/winui/bindings.rs:13551-13559 | crates/libs/reactor/src/native/winui/bindings.rs:19883-19891 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/future/src/bindings.rs:762 — crates/libs/future/src/bindings.rs:762-770 | crates/libs/future/src/bindings.rs:981-989 | crates/libs/future/src/bindings.rs:1427-1435 | crates/libs/future/src/bindings.rs:1701-1709 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 4) crates/libs/reactor/src/native/winui/bindings.rs:8933 — crates/libs/reactor/src/native/winui/bindings.rs:8933-8941 | crates/libs/webview/src/bindings.rs:2763-2771 | crates/libs/webview/src/bindings.rs:4351-4359 | crates/libs/webview/src/bindings.rs:4514-4522 — before extracting anything, compare `crates/libs/reactor/src/native/winui/bindings.rs` and `crates/libs/webview/src/bindings.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/reactor/src/native/winui/bindings.rs:20229 — crates/libs/reactor/src/native/winui/bindings.rs:20229-20237 | crates/libs/reactor/src/native/winui/bindings.rs:20259-20267 | crates/libs/reactor/src/native/winui/bindings.rs:20286-20294 | crates/libs/reactor/src/native/winui/bindings.rs:20313-20321 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3060 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3060-3068 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3302-3310 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3594-3602 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3724-3732 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4294 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4294-4302 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:747-755 | crates/libs/windows/src/Windows/UI/Input/mod.rs:1466-1474 | crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs:356-364 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` and `crates/libs/windows/src/Windows/Storage/Provider/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1339 — crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1339-1347 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2425-2433 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1645-1653 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:703-711 — before extracting anything, compare `crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs` and `crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:506 — crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:506-514 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:984-992 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1531-1539 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1799-1807 — before extracting anything, compare `crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs` and `crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Media/Core/mod.rs:2650 — crates/libs/windows/src/Windows/Media/Core/mod.rs:2650-2658 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1946-1954 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:372-380 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:145-153 — `crates/libs/windows/src/Windows/Media/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Devices/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Media/Effects/mod.rs:434 — crates/libs/windows/src/Windows/Media/Effects/mod.rs:434-442 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1080-1088 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1174-1182 | crates/libs/windows/src/Windows/Storage/mod.rs:3047-3055 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Effects/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Storage/Search/mod.rs:846 — crates/libs/windows/src/Windows/Storage/Search/mod.rs:846-854 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:872-880 | crates/libs/windows/src/Windows/Storage/mod.rs:3008-3016 | crates/libs/windows/src/Windows/Storage/mod.rs:3234-3242 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/Search/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:906 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:906-914 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3632-3640 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:690-698 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3668-3676 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Win32/certenc/mod.rs:742 — crates/libs/windows/src/Windows/Win32/certenc/mod.rs:742-750 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:962-970 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1174-1182 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1407-1415 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 4) crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3084 — crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3084-3092 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3238-3246 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3811-3819 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:4251-4259 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:1199 — crates/libs/composition/src/bindings.rs:1199-1207 | crates/libs/composition/src/bindings_lifted.rs:1081-1089 | crates/libs/reactor/src/native/winui/bindings.rs:7023-7031 | crates/libs/reactor/src/native/winui/bindings.rs:16919-16927 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:1464 — crates/libs/composition/src/bindings.rs:1464-1472 | crates/libs/composition/src/bindings_lifted.rs:1259-1267 | crates/libs/reactor/src/native/winui/bindings.rs:10565-10573 | crates/libs/reactor/src/native/winui/bindings.rs:10687-10695 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:1637 — crates/libs/composition/src/bindings.rs:1637-1645 | crates/libs/composition/src/bindings.rs:2851-2859 | crates/libs/composition/src/bindings_lifted.rs:1431-1439 | crates/libs/composition/src/bindings_lifted.rs:2664-2672 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:1747 — crates/libs/composition/src/bindings.rs:1747-1755 | crates/libs/composition/src/bindings.rs:2784-2792 | crates/libs/composition/src/bindings_lifted.rs:1541-1549 | crates/libs/composition/src/bindings_lifted.rs:2597-2605 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:1842 — crates/libs/composition/src/bindings.rs:1842-1850 | crates/libs/composition/src/bindings_lifted.rs:1636-1644 | crates/libs/reactor/src/native/winui/bindings.rs:10574-10582 | crates/libs/reactor/src/native/winui/bindings.rs:21298-21306 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 4) crates/libs/composition/src/bindings.rs:2440 — crates/libs/composition/src/bindings.rs:2440-2448 | crates/libs/composition/src/bindings_lifted.rs:2089-2097 | crates/libs/reactor/src/native/winui/bindings.rs:15997-16005 | crates/libs/reactor/src/native/winui/bindings.rs:21238-21246 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×21
  • Duplicated block (8 lines × 3) crates/libs/collections/src/bindings.rs:251 — crates/libs/collections/src/bindings.rs:251-258 | crates/libs/collections/src/bindings.rs:271-278 | crates/libs/reference/src/bindings.rs:97-104 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/reference/src/bindings.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 3) crates/libs/composition/src/bindings_lifted.rs:2322 — crates/libs/composition/src/bindings_lifted.rs:2322-2329 | crates/libs/reactor/src/native/winui/bindings.rs:9150-9157 | crates/libs/reactor/src/native/winui/bindings.rs:21873-21880 — before extracting anything, compare `crates/libs/composition/src/bindings_lifted.rs` and `crates/libs/reactor/src/native/winui/bindings.rs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/core/pump/planner/topology.rs:527 — crates/libs/reactor/src/core/pump/planner/topology.rs:527-534 | crates/libs/reactor/src/core/pump/planner/view.rs:449-456 | crates/libs/reactor/src/core/pump/planner/view.rs:2026-2033 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:965 — crates/libs/reactor/src/native/winui/bindings.rs:965-972 | crates/libs/reactor/src/native/winui/bindings.rs:2510-2517 | crates/libs/reactor/src/native/winui/bindings.rs:24698-24705 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:1050 — crates/libs/reactor/src/native/winui/bindings.rs:1050-1057 | crates/libs/reactor/src/native/winui/bindings.rs:22811-22818 | crates/libs/reactor/src/native/winui/bindings.rs:25691-25698 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:2138 — crates/libs/reactor/src/native/winui/bindings.rs:2138-2145 | crates/libs/reactor/src/native/winui/bindings.rs:9498-9505 | crates/libs/reactor/src/native/winui/bindings.rs:9528-9535 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:22758 — crates/libs/reactor/src/native/winui/bindings.rs:22758-22765 | crates/libs/reactor/src/native/winui/bindings.rs:24420-24427 | crates/libs/reactor/src/native/winui/bindings.rs:27433-27440 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:24538 — crates/libs/reactor/src/native/winui/bindings.rs:24538-24545 | crates/libs/reactor/src/native/winui/bindings.rs:25533-25540 | crates/libs/reactor/src/native/winui/bindings.rs:25771-25778 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:24548 — crates/libs/reactor/src/native/winui/bindings.rs:24548-24555 | crates/libs/reactor/src/native/winui/bindings.rs:25543-25550 | crates/libs/reactor/src/native/winui/bindings.rs:25781-25788 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:26625 — crates/libs/reactor/src/native/winui/bindings.rs:26625-26632 | crates/libs/reactor/src/native/winui/bindings.rs:28968-28975 | crates/libs/reactor/src/native/winui/bindings.rs:29093-29100 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:27674 — crates/libs/reactor/src/native/winui/bindings.rs:27674-27681 | crates/libs/reactor/src/native/winui/bindings.rs:28017-28024 | crates/libs/reactor/src/native/winui/bindings.rs:30458-30465 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/certenc/mod.rs:116 — crates/libs/windows/src/Windows/Win32/certenc/mod.rs:116-123 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:628-635 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1301-1308 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:950 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:950-957 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10108-10115 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12723-12730 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/certview/mod.rs:583 — crates/libs/windows/src/Windows/Win32/certview/mod.rs:583-590 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:755-762 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:928-935 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1495 — crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1495-1502 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1102-1109 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:4375-4382 — `crates/libs/windows/src/Windows/Win32/comadmin/mod.rs` and `crates/libs/windows/src/Windows/Win32/control/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3828 — crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3828-3835 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5734-5741 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:4375-4382 — `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` and `crates/libs/windows/src/Windows/Win32/exdisp/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 111 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3091 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3091-3098 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3277-3284 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3410-3417 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2125 — crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2125-2132 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2457-2464 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2612-2619 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2684 — crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2684-2691 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3079-3086 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3193-3200 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/windows/src/Windows/Win32/iads/mod.rs:5439 — crates/libs/windows/src/Windows/Win32/iads/mod.rs:5439-5446 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6121-6128 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6394-6401 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) crates/libs/canvas/src/bindings.rs:2364 — crates/libs/canvas/src/bindings.rs:2364-2371 | crates/libs/reactor/src/native/winui/bindings.rs:17551-17558 | crates/libs/reactor/src/native/winui/bindings.rs:21714-21721 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
D2 · Cognitive Complexity · windows_clang · ×20
  • windows_clang::extract::extract_child (cognitive 73) crates/libs/clang/src/extract.rs:827 — windows_clang::extract::extract_child has cognitive complexity 73 (threshold 15). Drivers by points: if/else 25 (52 pts), boolean chains 18, loops 1 (3 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • windows_clang::choose_type_root_cached (cognitive 56) crates/libs/clang/src/lib.rs:2079 — windows_clang::choose_type_root_cached has cognitive complexity 56 (threshold 15). Drivers by points: if/else 28 (50 pts), boolean chains 39, match/switch 6 (8 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (windows_clang::choose_type_root_cached::resolved_type_shape::write) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • windows_clang::extract::type_ref (cognitive 51) crates/libs/clang/src/extract.rs:3287 — windows_clang::extract::type_ref has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (41 pts), boolean chains 10 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::record_layout (cognitive 49) crates/libs/clang/src/lib.rs:3663 — windows_clang::record_layout has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (39 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::fact_data (cognitive 47) crates/libs/clang/src/extract.rs:2007 — windows_clang::extract::fact_data has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (36 pts), match/switch 3 (6 pts), boolean chains 5 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::recover_midl_artifacts (cognitive 46) crates/libs/clang/src/extract.rs:189 — windows_clang::extract::recover_midl_artifacts has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 9, loops 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::inline_record (cognitive 43) crates/libs/clang/src/extract.rs:3110 — windows_clang::extract::inline_record has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 3, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::evaluate_parsed_probe (cognitive 36) crates/libs/clang/src/extract.rs:1834 — windows_clang::extract::evaluate_parsed_probe has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::evaluate_constants (cognitive 31) crates/libs/clang/src/extract.rs:1352 — windows_clang::extract::evaluate_constants has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 10, match/switch 1 (4 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::write_record_fields (cognitive 29) crates/libs/clang/src/lib.rs:3584 — windows_clang::write_record_fields has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::interface_fact (cognitive 28) crates/libs/clang/src/extract.rs:2349 — windows_clang::extract::interface_fact has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 6, match/switch 3 (6 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::parameter_annotation (cognitive 27) crates/libs/clang/src/extract.rs:2839 — windows_clang::extract::parameter_annotation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 8, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::extract::callable_params (cognitive 26) crates/libs/clang/src/extract.rs:2620 — windows_clang::extract::callable_params has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 1 (3 pts), loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::choose_type_root_cached::resolved_type_shape::write (cognitive 24) crates/libs/clang/src/lib.rs:2195 — windows_clang::choose_type_root_cached::resolved_type_shape::write has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (windows_clang::choose_type_root_cached) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • windows_clang::queue_type_edges (cognitive 22) crates/libs/clang/src/lib.rs:3077 — windows_clang::queue_type_edges has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 4 (9 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_clang::validate_complete_layout (cognitive 21) crates/libs/clang/src/lib.rs:2983 — windows_clang::validate_complete_layout has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
  • windows_clang::param_attributes (cognitive 18) crates/libs/clang/src/lib.rs:3221 — windows_clang::param_attributes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • windows_clang::extract::decode_reachable_structs (cognitive 17) crates/libs/clang/src/extract.rs:1013 — windows_clang::extract::decode_reachable_structs has cognitive complexity 17 (threshold 15). Drivers by points: loops 7 (11 pts), if/else 2 (6 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
  • windows_clang::extract::extract (cognitive 16) crates/libs/clang/src/extract.rs:7 — windows_clang::extract::extract has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
  • windows_clang::extract::apply_source_annotations (cognitive 16) crates/libs/clang/src/extract.rs:2774 — windows_clang::extract::apply_source_annotations has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, match/switch 2 (5 pts), if/else 2 (4 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×19
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1298 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1298-1304 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4137-4143 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5113-5119 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5269-5275 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7133-7139 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2750-2756 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3457-3463 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1305 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1305-1311 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4144-4150 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5120-5126 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5276-5282 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7140-7146 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2757-2763 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3464-3470 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1285 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1285-1291 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1939-1945 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3433-3439 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:170-176 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:32-38 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:903-909 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2473-2479 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1695 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1695-1706 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1829-1840 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2229-2240 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2499-2510 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2666-2677 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2303-2314 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3854-3865 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:95 — crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:95-101 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:812-818 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1024-1030 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1304-1310 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4584-4590 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4847-4853 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5140-5146 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:168 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:168-174 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:745-751 | crates/libs/windows/src/Windows/Storage/mod.rs:1611-1617 | crates/libs/windows/src/Windows/Storage/mod.rs:2151-2157 | crates/libs/windows/src/Windows/Storage/mod.rs:2792-2798 | crates/libs/windows/src/Windows/Storage/mod.rs:4476-4482 | crates/libs/windows/src/Windows/Storage/mod.rs:4908-4914 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:175 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:175-181 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:752-758 | crates/libs/windows/src/Windows/Storage/mod.rs:1618-1624 | crates/libs/windows/src/Windows/Storage/mod.rs:2158-2164 | crates/libs/windows/src/Windows/Storage/mod.rs:2799-2805 | crates/libs/windows/src/Windows/Storage/mod.rs:4483-4489 | crates/libs/windows/src/Windows/Storage/mod.rs:4915-4921 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:183 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:183-189 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:760-766 | crates/libs/windows/src/Windows/Storage/mod.rs:1626-1632 | crates/libs/windows/src/Windows/Storage/mod.rs:2166-2172 | crates/libs/windows/src/Windows/Storage/mod.rs:2807-2813 | crates/libs/windows/src/Windows/Storage/mod.rs:4491-4497 | crates/libs/windows/src/Windows/Storage/mod.rs:4923-4929 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6108 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6108-6122 | crates/libs/windows/src/Windows/Win32/certexit/mod.rs:138-152 | crates/libs/windows/src/Windows/Win32/certpol/mod.rs:140-154 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:2026-2040 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:16132-16146 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2523-2537 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6487-6501 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4974 — crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4974-5069 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7859-7941 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8100-8143 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9473-9516 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10651-10800 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3136-3253 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8723-8814 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6152 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6152-6166 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6208-6222 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6264-6278 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6320-6334 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6376-6390 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6432-6446 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6488-6502 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5045 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5045-5050 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5991-5996 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7040-7045 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8615-8620 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10205-10210 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11807-11812 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13424-13429 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14911 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14911-14916 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16546-16551 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18340-18345 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20382-20387 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23330-23335 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26359-26364 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29429-29434 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15135 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15135-15140 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16770-16775 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18564-18569 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20606-20611 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23554-23559 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26583-26588 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29653-29658 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15141 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15141-15146 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16776-16781 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18570-18575 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20612-20617 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23560-23565 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26589-26594 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29659-29664 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15151 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15151-15156 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16786-16791 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18580-18585 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20622-20627 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23570-23575 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26599-26604 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29669-29674 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15167 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15167-15172 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16802-16807 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18596-18601 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20638-20643 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23586-23591 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26615-26620 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29685-29690 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15180 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15180-15185 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16815-16820 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18609-18614 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20651-20656 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23599-23604 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26628-26633 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29698-29703 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15197 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15197-15202 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16832-16837 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18626-18631 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20668-20673 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23616-23621 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26645-26650 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29715-29720 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication · Duplicated block (11–15 lines × 2) · ×19
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:82 — crates/libs/reference/src/bindings.rs:82-96 | crates/libs/windows/src/Windows/Foundation/mod.rs:676-686 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:101 — crates/libs/reference/src/bindings.rs:101-115 | crates/libs/windows/src/Windows/Foundation/mod.rs:688-698 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:117 — crates/libs/reference/src/bindings.rs:117-131 | crates/libs/windows/src/Windows/Foundation/mod.rs:700-710 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:133 — crates/libs/reference/src/bindings.rs:133-147 | crates/libs/windows/src/Windows/Foundation/mod.rs:712-722 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:149 — crates/libs/reference/src/bindings.rs:149-163 | crates/libs/windows/src/Windows/Foundation/mod.rs:724-734 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:165 — crates/libs/reference/src/bindings.rs:165-179 | crates/libs/windows/src/Windows/Foundation/mod.rs:736-746 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:181 — crates/libs/reference/src/bindings.rs:181-195 | crates/libs/windows/src/Windows/Foundation/mod.rs:748-758 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:197 — crates/libs/reference/src/bindings.rs:197-211 | crates/libs/windows/src/Windows/Foundation/mod.rs:760-770 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:213 — crates/libs/reference/src/bindings.rs:213-227 | crates/libs/windows/src/Windows/Foundation/mod.rs:772-782 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:229 — crates/libs/reference/src/bindings.rs:229-243 | crates/libs/windows/src/Windows/Foundation/mod.rs:784-794 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:245 — crates/libs/reference/src/bindings.rs:245-259 | crates/libs/windows/src/Windows/Foundation/mod.rs:796-806 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:261 — crates/libs/reference/src/bindings.rs:261-275 | crates/libs/windows/src/Windows/Foundation/mod.rs:808-818 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:277 — crates/libs/reference/src/bindings.rs:277-291 | crates/libs/windows/src/Windows/Foundation/mod.rs:820-830 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:310 — crates/libs/reference/src/bindings.rs:310-324 | crates/libs/windows/src/Windows/Foundation/mod.rs:845-855 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:329 — crates/libs/reference/src/bindings.rs:329-343 | crates/libs/windows/src/Windows/Foundation/mod.rs:857-867 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:348 — crates/libs/reference/src/bindings.rs:348-362 | crates/libs/windows/src/Windows/Foundation/mod.rs:869-879 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:364 — crates/libs/reference/src/bindings.rs:364-378 | crates/libs/windows/src/Windows/Foundation/mod.rs:881-891 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:380 — crates/libs/reference/src/bindings.rs:380-394 | crates/libs/windows/src/Windows/Foundation/mod.rs:893-903 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11–15 lines × 2) crates/libs/reference/src/bindings.rs:396 — crates/libs/reference/src/bindings.rs:396-410 | crates/libs/windows/src/Windows/Foundation/mod.rs:905-915 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 8) · ×19
  • Duplicated block (6 lines × 8) crates/libs/future/src/bindings.rs:843 — crates/libs/future/src/bindings.rs:843-848 | crates/libs/future/src/bindings.rs:1085-1091 | crates/libs/future/src/bindings.rs:1121-1127 | crates/libs/future/src/bindings.rs:1520-1526 | crates/libs/future/src/bindings.rs:1818-1824 | crates/libs/future/src/bindings.rs:1859-1865 | crates/libs/reactor/src/native/winui/bindings.rs:5320-5326 | crates/libs/reactor/src/native/winui/bindings.rs:9172-9178 — there are 8 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1250 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1250-1255 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2606-2611 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:197-202 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:313-318 | crates/libs/windows/src/Windows/Storage/mod.rs:115-120 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1122-1127 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1519-1524 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3519-3524 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1376 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1376-1381 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1530-1535 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4194-4199 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4590-4595 | crates/libs/windows/src/Windows/Media/Playlists/mod.rs:51-56 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:935-940 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2832-2837 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2995-3000 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1725 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1725-1730 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4909-4914 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1629-1634 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1792-1797 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1057-1062 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1936-1941 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1964-1969 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3226-3231 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6018 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6018-6023 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7677-7682 | crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs:261-266 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:64-69 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:418-423 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:566-571 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:638-643 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4136-4141 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:384 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:384-389 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:922-927 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1266-1271 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2601-2606 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2710-2715 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2838-2843 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3045-3050 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3095-3100 — there are 8 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:263 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:263-268 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:315-320 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2910-2915 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:674-679 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:373-378 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3527-3532 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:369-374 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1680-1685 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Media/Playback/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:309 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:309-314 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:255-260 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:866-871 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4504-4509 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2076-2081 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:28-33 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:263-268 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1563-1568 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:688 — crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:688-693 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:380-385 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7570-7575 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:8155-8160 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:8877-8882 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:9492-9497 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10619-10624 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11607-11612 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` and `crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1845 — crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1845-1850 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5386-5391 | crates/libs/windows/src/Windows/System/Profile/mod.rs:136-141 | crates/libs/windows/src/Windows/System/Profile/mod.rs:779-784 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:585-590 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:77-82 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:431-436 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:557-562 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` and `crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:571 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:571-576 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:678-683 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:884-889 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:953-958 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1080-1085 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1143-1148 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1212-1217 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1488-1493 — `crates/libs/windows/src/Windows/Devices/Midi/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:433 — crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:433-438 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1843-1848 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1661-1666 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:3314-3319 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2766-2771 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1947-1952 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1273-1278 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10284-10289 — before extracting anything, compare `crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs` and `crates/libs/windows/src/Windows/Storage/Provider/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1076 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1076-1081 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1452-1457 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8178-8183 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8981-8986 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2217-2222 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11209-11214 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16146-16151 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3385-3390 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` and `crates/libs/windows/src/Windows/Services/Store/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:261 — crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:261-266 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:569-574 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:882-887 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1336-1341 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1688-1693 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1904-1909 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2404-2409 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2428-2433 — there are 8 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:23 — crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:23-28 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:97-102 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:343-348 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:506-511 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:594-599 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1313-1318 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1536-1541 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2614-2619 — there are 8 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Management/mod.rs:131 — crates/libs/windows/src/Windows/Management/mod.rs:131-136 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:896-901 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2278-2283 | crates/libs/windows/src/Windows/Media/mod.rs:473-478 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:857-862 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2880-2885 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1865-1870 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3330-3335 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs` and `crates/libs/windows/src/Windows/Media/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:855 — crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:855-860 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1168-1173 | crates/libs/windows/src/Windows/Perception/People/mod.rs:179-184 | crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs:52-57 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:216-221 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:459-464 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1560-1565 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1644-1649 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs` and `crates/libs/windows/src/Windows/Perception/Spatial/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Media/Ocr/mod.rs:229 — crates/libs/windows/src/Windows/Media/Ocr/mod.rs:229-234 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:79-84 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:789-794 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:33-38 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:845-850 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2443-2448 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2572-2577 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2770-2775 — there are 8 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 8) crates/libs/windows/src/Windows/Media/Protection/mod.rs:8 — crates/libs/windows/src/Windows/Media/Protection/mod.rs:8-13 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:195-200 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2221-2226 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2644-2649 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2760-2765 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3180-3185 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3567-3572 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3801-3806 — there are 8 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Members sharing a duplicated core (8 members, 50+ identical tokens) · ×18
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1175 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1175-1181 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1313-1319 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1404-1410 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7025-7031 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7155-7161 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7469-7475 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7561-7567 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7698-7704 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4791 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4791-4796 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4922-4927 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1280-1285 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6864-6869 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7967-7972 | crates/libs/windows/src/Windows/Win32/control/mod.rs:22-27 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:481-486 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:776-781 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1769 — crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1769-1774 | crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs:181-186 | crates/libs/windows/src/Windows/Networking/mod.rs:147-152 | crates/libs/windows/src/Windows/Storage/mod.rs:2772-2777 | crates/libs/windows/src/Windows/UI/Text/mod.rs:604-609 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2013-2018 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2839-2844 | crates/libs/windows/src/Windows/UI/Text/mod.rs:4758-4763 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:18 — crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:18-24 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:92-98 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:260-266 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:334-340 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:678-684 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:764-770 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:838-844 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:912-918 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:137 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:137-143 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:372-378 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:654-660 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:852-858 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1561-1567 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1843-1849 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2116-2122 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1137-1143 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Core/mod.rs:71 — crates/libs/windows/src/Windows/Media/Core/mod.rs:71-77 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6018-6024 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7540-7546 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:57-63 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:271-277 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1313-1319 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2301-2307 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2459-2465 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Import/mod.rs:893 — crates/libs/windows/src/Windows/Media/Import/mod.rs:893-899 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:197-203 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:774-780 | crates/libs/windows/src/Windows/Storage/mod.rs:1640-1646 | crates/libs/windows/src/Windows/Storage/mod.rs:2180-2186 | crates/libs/windows/src/Windows/Storage/mod.rs:2821-2827 | crates/libs/windows/src/Windows/Storage/mod.rs:4505-4511 | crates/libs/windows/src/Windows/Storage/mod.rs:4937-4943 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:549 — crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:549-555 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1138-1144 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1183-1189 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1221-1227 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1290-1296 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1347-1353 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1410-1416 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1479-1485 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:390 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:390-396 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:476-482 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:556-562 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:636-642 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:710-716 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:859-865 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:957-963 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1066-1072 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:397 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:397-403 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:483-489 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:563-569 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:643-649 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:717-723 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:866-872 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:964-970 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1073-1079 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:404 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:404-410 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:490-496 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:570-576 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:650-656 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:724-730 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:873-879 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:971-977 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1080-1086 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:411 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:411-417 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:497-503 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:577-583 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:657-663 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:731-737 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:880-886 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:978-984 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1087-1093 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:418 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:418-424 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:504-510 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:584-590 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:664-670 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:738-744 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:887-893 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:985-991 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1094-1100 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:425 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:425-431 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:511-517 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:591-597 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:671-677 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:745-751 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:894-900 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:992-998 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1101-1107 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:432 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:432-438 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:518-524 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:598-604 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:678-684 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:752-758 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:901-907 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:999-1005 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1108-1114 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4276 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4276-4319 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4656-4699 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4866-4909 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5028-5054 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5245-5288 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5459-5567 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6625-6668 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:785-811 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12810 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12810-12841 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12891-12922 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13085-13116 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13169-13200 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13334-13365 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13418-13449 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13499-13530 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13706-13737 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3033 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3033-3038 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3161-3166 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3231-3236 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3325-3330 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3374-3379 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3452-3457 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3501-3506 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3550-3555 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×18
  • Duplicated block (12 lines × 2) crates/libs/bindgen/src/types/cpp_enum.rs:46 — crates/libs/bindgen/src/types/cpp_enum.rs:46-57 | crates/libs/bindgen/src/types/enum.rs:86-97 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) crates/libs/clang/src/lib.rs:944 — crates/libs/clang/src/lib.rs:944-955 | crates/libs/clang/src/lib.rs:965-976 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/collections/src/bindings.rs:726 — crates/libs/collections/src/bindings.rs:726-737 | crates/libs/collections/src/bindings.rs:1216-1227 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/composition/src/bindings.rs:1273 — crates/libs/composition/src/bindings.rs:1273-1284 | crates/libs/composition/src/bindings_lifted.rs:2203-2214 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) crates/libs/composition/src/bindings.rs:1389 — crates/libs/composition/src/bindings.rs:1389-1400 | crates/libs/composition/src/bindings_lifted.rs:1213-1224 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) crates/libs/core/src/imp/bindings.rs:111 — crates/libs/core/src/imp/bindings.rs:111-122 | crates/libs/core/src/imp/bindings.rs:177-188 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/core/src/imp/sha1.rs:155 — crates/libs/core/src/imp/sha1.rs:155-166 | crates/libs/core/src/imp/sha1.rs:282-293 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/rdl/src/reader/interface.rs:335 — crates/libs/rdl/src/reader/interface.rs:335-346 | crates/libs/rdl/src/reader/interface.rs:408-419 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/rdl/src/reader/struct.rs:16 — crates/libs/rdl/src/reader/struct.rs:16-27 | crates/libs/rdl/src/reader/union.rs:14-25 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) crates/libs/reactor/src/core/pump/planner/topology.rs:351 — crates/libs/reactor/src/core/pump/planner/topology.rs:351-362 | crates/libs/reactor/src/core/pump/planner/topology.rs:368-379 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1411 — crates/libs/reactor/src/core/pump/planner/view.rs:1411-1422 | crates/libs/reactor/src/core/pump/planner/view.rs:1508-1519 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/reactor/src/native/winui/bindings.rs:19220 — crates/libs/reactor/src/native/winui/bindings.rs:19220-19231 | crates/libs/reactor/src/native/winui/bindings.rs:19252-19263 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:2385 — crates/libs/reactor/src/native/winui/mod.rs:2385-2396 | crates/libs/reactor/src/native/winui/mod.rs:2471-2482 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/windows/src/Windows/UI/Core/mod.rs:2947 — crates/libs/windows/src/Windows/UI/Core/mod.rs:2947-2958 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4264-4275 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36653 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36653-36664 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37049-37060 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2259 — crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2259-2270 | crates/libs/windows/src/Windows/Media/mod.rs:1816-1827 — `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` and `crates/libs/windows/src/Windows/Media/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (12 lines × 2) crates/libs/composition/src/bindings.rs:1479 — crates/libs/composition/src/bindings.rs:1479-1490 | crates/libs/composition/src/bindings_lifted.rs:1274-1285 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) crates/libs/core/src/imp/delegate_box.rs:79 — crates/libs/core/src/imp/delegate_box.rs:79-90 | crates/libs/core/src/imp/marshaler.rs:88-99 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (5 lines × 7) · ×18
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1300 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1300-1304 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4139-4143 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5115-5119 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5271-5275 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7135-7139 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2752-2756 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3459-3463 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1307 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1307-1311 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4146-4150 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5122-5126 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5278-5282 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7142-7146 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2759-2763 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3466-3470 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:814 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:814-818 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2793-2797 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1585-1589 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:682-686 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:616-620 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2155-2159 | crates/libs/windows/src/Windows/UI/Input/mod.rs:189-193 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Printing/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1287 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1287-1291 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1941-1945 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3435-3439 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:172-176 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:34-38 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:905-909 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2475-2479 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1698 — crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1698-1702 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1832-1836 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2232-2236 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2502-2506 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2669-2673 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2306-2310 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3857-3861 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` and `crates/libs/windows/src/Windows/Networking/Sockets/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:97 — crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:97-101 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:814-818 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1026-1030 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1306-1310 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4586-4590 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4849-4853 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5142-5146 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:68 — crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:68-72 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:181-185 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:279-283 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:387-391 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1046-1050 | crates/libs/windows/src/Windows/Storage/mod.rs:346-350 | crates/libs/windows/src/Windows/Storage/mod.rs:515-519 — before extracting anything, compare `crates/libs/windows/src/Windows/Foundation/Collections/mod.rs` and `crates/libs/windows/src/Windows/Security/Credentials/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:170 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:170-174 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:747-751 | crates/libs/windows/src/Windows/Storage/mod.rs:1613-1617 | crates/libs/windows/src/Windows/Storage/mod.rs:2153-2157 | crates/libs/windows/src/Windows/Storage/mod.rs:2794-2798 | crates/libs/windows/src/Windows/Storage/mod.rs:4478-4482 | crates/libs/windows/src/Windows/Storage/mod.rs:4910-4914 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:177 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:177-181 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:754-758 | crates/libs/windows/src/Windows/Storage/mod.rs:1620-1624 | crates/libs/windows/src/Windows/Storage/mod.rs:2160-2164 | crates/libs/windows/src/Windows/Storage/mod.rs:2801-2805 | crates/libs/windows/src/Windows/Storage/mod.rs:4485-4489 | crates/libs/windows/src/Windows/Storage/mod.rs:4917-4921 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:185 — crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:185-189 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:762-766 | crates/libs/windows/src/Windows/Storage/mod.rs:1628-1632 | crates/libs/windows/src/Windows/Storage/mod.rs:2168-2172 | crates/libs/windows/src/Windows/Storage/mod.rs:2809-2813 | crates/libs/windows/src/Windows/Storage/mod.rs:4493-4497 | crates/libs/windows/src/Windows/Storage/mod.rs:4925-4929 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15136 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15136-15140 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16771-16775 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18565-18569 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20607-20611 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23555-23559 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26584-26588 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29654-29658 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15142 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15142-15146 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16777-16781 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18571-18575 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20613-20617 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23561-23565 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26590-26594 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29660-29664 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15181 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15181-15185 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16816-16820 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18610-18614 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20652-20656 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23600-23604 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26629-26633 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29699-29703 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5046 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5046-5050 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5992-5996 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7041-7045 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8616-8620 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10206-10210 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11808-11812 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13425-13429 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14912 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14912-14916 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16547-16551 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18341-18345 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20383-20387 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23331-23335 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26360-26364 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29430-29434 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15152 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15152-15156 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16787-16791 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18581-18585 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20623-20627 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23571-23575 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26600-26604 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29670-29674 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15168 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15168-15172 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16803-16807 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18597-18601 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20639-20643 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23587-23591 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26616-26620 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29686-29690 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15198 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15198-15202 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16833-16837 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18627-18631 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20669-20673 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23617-23621 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26646-26650 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29716-29720 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D1 · Cyclomatic Complexity · windows_clang · ×17
  • windows_clang::choose_type_root_cached (cyclomatic 46) crates/libs/clang/src/lib.rs:2079 — windows_clang::choose_type_root_cached has cyclomatic complexity 46 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: one other method here (windows_clang::choose_type_root_cached::resolved_type_shape::write) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • windows_clang::extract::extract_child (cyclomatic 41) crates/libs/clang/src/extract.rs:827 — windows_clang::extract::extract_child has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::extract::type_ref (cyclomatic 33) crates/libs/clang/src/extract.rs:3287 — windows_clang::extract::type_ref has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::extract::recover_midl_artifacts (cyclomatic 32) crates/libs/clang/src/extract.rs:189 — windows_clang::extract::recover_midl_artifacts has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::extract::fact_data (cyclomatic 30) crates/libs/clang/src/extract.rs:2007 — windows_clang::extract::fact_data has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::record_layout (cyclomatic 24) crates/libs/clang/src/lib.rs:3663 — windows_clang::record_layout has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::extract::evaluate_constants (cyclomatic 23) crates/libs/clang/src/extract.rs:1352 — windows_clang::extract::evaluate_constants has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::extract::interface_fact (cyclomatic 23) crates/libs/clang/src/extract.rs:2349 — windows_clang::extract::interface_fact has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
  • windows_clang::choose_type_root_cached::resolved_type_shape::write (cyclomatic 22) crates/libs/clang/src/lib.rs:2195 — windows_clang::choose_type_root_cached::resolved_type_shape::write has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (windows_clang::choose_type_root_cached) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • windows_clang::extract::parameter_annotation (cyclomatic 21) crates/libs/clang/src/extract.rs:2839 — windows_clang::extract::parameter_annotation has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::extract::decode_c_string (cyclomatic 20) crates/libs/clang/src/extract.rs:1628 — windows_clang::extract::decode_c_string has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • windows_clang::extract::decode_c_bytes (cyclomatic 20) crates/libs/clang/src/extract.rs:1679 — windows_clang::extract::decode_c_bytes has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • windows_clang::extract::apply_source_annotations (cyclomatic 19) crates/libs/clang/src/extract.rs:2774 — windows_clang::extract::apply_source_annotations has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • windows_clang::extract::inline_record (cyclomatic 18) crates/libs/clang/src/extract.rs:3110 — windows_clang::extract::inline_record has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::param_attributes (cyclomatic 17) crates/libs/clang/src/lib.rs:3221 — windows_clang::param_attributes has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: windows_clang::canonical_named_type (cyclomatic 18) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • windows_clang::extract::evaluate_parsed_probe (cyclomatic 17) crates/libs/clang/src/extract.rs:1834 — windows_clang::extract::evaluate_parsed_probe has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_clang::validate_complete_layout (cyclomatic 16) crates/libs/clang/src/lib.rs:2983 — windows_clang::validate_complete_layout has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: windows_clang::canonical_named_type (cyclomatic 18) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
D4 · Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) · ×16
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1155 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1155-1161 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1285-1291 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1368-1374 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6991-6997 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7126-7132 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7440-7446 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7524-7530 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7670-7676 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7923-7929 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1388 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1388-1394 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1466-1472 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1591-1597 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7453-7459 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7538-7544 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2919-2925 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3068-3074 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3900-3906 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3989-3995 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Core/mod.rs:121 — crates/libs/windows/src/Windows/Media/Core/mod.rs:121-127 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6003-6009 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6083-6089 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7526-7532 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2373-2379 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2450-2456 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2533-2539 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2592-2598 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2947-2953 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Core/mod.rs:1051 — crates/libs/windows/src/Windows/Media/Core/mod.rs:1051-1057 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5720-5726 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:121-127 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:285-291 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1363-1369 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2369-2375 | crates/libs/windows/src/Windows/Media/mod.rs:137-143 | crates/libs/windows/src/Windows/Media/mod.rs:2650-2656 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1538-1544 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2156 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2156-2162 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2562-2568 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3933-3939 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4049-4055 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4227-4233 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4449-4455 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4724-4730 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4822-4828 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5041-5047 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2163 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2163-2169 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2569-2575 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3940-3946 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4056-4062 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4234-4240 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4456-4462 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4731-4737 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4829-4835 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5048-5054 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2174 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2174-2180 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2580-2586 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3951-3957 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4067-4073 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4245-4251 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4467-4473 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4742-4748 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4840-4846 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5059-5065 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2181 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2181-2187 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2587-2593 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3958-3964 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4074-4080 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4252-4258 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4474-4480 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4749-4755 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4847-4853 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5066-5072 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2188 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2188-2194 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2594-2600 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3965-3971 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4081-4087 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4259-4265 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4481-4487 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4756-4762 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4854-4860 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5073-5079 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2591 — crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2591-2597 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2737-2743 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2824-2830 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3292-3298 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3385-3391 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3450-3456 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3887-3893 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3975-3981 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4129-4135 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1497 — crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1497-1558 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:35040-35164 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37556-37983 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38530-39019 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40192-41209 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42437-43503 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44748-45834 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9309-9450 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9535-9636 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1098 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1098-1122 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1167-1191 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1354-1374 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1443-1506 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1779-1803 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1851-1871 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1925-1956 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2006-2037 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2082-2102 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3158 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3158-3163 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3927-3932 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4799-4804 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5745-5750 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6794-6799 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8369-8374 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9959-9964 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11561-11566 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13178-13183 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3175 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3175-3180 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3944-3949 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4816-4821 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5762-5767 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6811-6816 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8386-8391 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9976-9981 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11578-11583 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13195-13200 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3312 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3312-3317 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4081-4086 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4953-4958 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5899-5904 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6948-6953 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8523-8528 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10113-10118 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11715-11720 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13332-13337 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3506 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3506-3891 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4322-4763 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5234-5709 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6235-6758 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7559-8333 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9142-9923 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10737-11525 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12347-13142 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13980-14789 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Duplicated block (6 lines × 10) · ×16
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/UI/Core/mod.rs:1544 — crates/libs/windows/src/Windows/UI/Core/mod.rs:1544-1549 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1558-1563 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1572-1577 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1586-1591 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1600-1605 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1614-1619 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1642-1647 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3202-3207 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3216-3221 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3230-3235 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/AI/Actions/mod.rs:1796 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:1796-1801 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:374-379 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:2091-2096 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3057-3062 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1750-1755 | crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs:958-963 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:797-802 | crates/libs/windows/src/Windows/Storage/mod.rs:1493-1498 | crates/libs/windows/src/Windows/Storage/mod.rs:4284-4289 | crates/libs/windows/src/Windows/System/mod.rs:3110-3115 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` and `crates/libs/windows/src/Windows/Storage/Streams/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5331 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5331-5336 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7246-7251 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:106-111 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:182-187 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:236-241 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:281-286 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:372-377 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2549-2554 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3466-3471 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3650-3655 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:718 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:718-723 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2328-2333 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2536-2541 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2705-2710 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2785-2790 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2954-2959 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3055-3060 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2367-2372 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1009-1014 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:2358-2363 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1419 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1419-1424 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:3026-3031 | crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:25-30 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:835-840 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:24-29 | crates/libs/windows/src/Windows/Services/Store/mod.rs:689-694 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1454-1459 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:494-499 | crates/libs/windows/src/Windows/UI/Input/mod.rs:313-318 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2526-2531 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs` and `crates/libs/windows/src/Windows/Services/Store/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1694 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1694-1699 | crates/libs/windows/src/Windows/Foundation/mod.rs:2199-2204 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2068-2073 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:326-331 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1318-1323 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:96-101 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:348-353 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:925-930 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1161-1166 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:868-873 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2292 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2292-2297 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:887-892 | crates/libs/windows/src/Windows/Data/Pdf/mod.rs:355-360 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1101-1106 | crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs:251-256 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:770-775 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:471-476 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:665-670 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:931-936 | crates/libs/windows/src/Windows/UI/Text/mod.rs:385-390 — `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1381 — crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1381-1386 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9766-9771 | crates/libs/windows/src/Windows/Gaming/UI/mod.rs:88-93 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2524-2529 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6842-6847 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:102-107 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:424-429 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5665-5670 | crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs:75-80 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2514-2519 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs` and `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2524 — crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2524-2529 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2693-2698 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2773-2778 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2942-2947 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3037-3042 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:2321-2326 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:699-704 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:86-91 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:224-229 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:284-289 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` and `crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/Devices/Input/mod.rs:712 — crates/libs/windows/src/Windows/Devices/Input/mod.rs:712-717 | crates/libs/windows/src/Windows/UI/Input/mod.rs:53-58 | crates/libs/windows/src/Windows/UI/Input/mod.rs:114-119 | crates/libs/windows/src/Windows/UI/Input/mod.rs:784-789 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2227-2232 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2297-2302 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2351-2356 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2393-2398 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3890-3895 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4130-4135 — there are 10 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6383 — crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6383-6388 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:281-286 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1357-1362 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1883-1888 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1229-1234 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:532-537 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:1271-1276 | crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs:852-857 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2851-2856 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:95-100 — before extracting anything, compare `crates/libs/windows/src/Windows/Graphics/Printing/mod.rs` and `crates/libs/windows/src/Windows/Media/Audio/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/Media/Core/mod.rs:1003 — crates/libs/windows/src/Windows/Media/Core/mod.rs:1003-1008 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5679-5684 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7417-7422 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:114-119 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:404-409 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1050-1055 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1144-1149 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1422-1427 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1473-1478 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1531-1536 — `crates/libs/windows/src/Windows/Media/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Effects/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:301 — crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:301-306 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:341-346 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:543-548 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:609-614 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1026-1031 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1090-1095 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1287-1292 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3392-3397 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4462-4467 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4514-4519 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Devices/mod.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:307 — crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:307-312 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:347-352 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:549-554 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:615-620 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1032-1037 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1096-1101 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1293-1298 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3398-3403 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4468-4473 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4520-4525 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Devices/mod.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:313 — crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:313-318 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:353-358 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:555-560 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:621-626 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1038-1043 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1102-1107 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1299-1304 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3404-3409 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4474-4479 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4526-4531 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Devices/mod.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 10) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4485 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4485-4490 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8636-8641 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5279-5284 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5334-5339 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5425-5430 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5554-5559 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5773-5778 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:6153-6158 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:6208-6213 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:6263-6268 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d9/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 67 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5 lines × 8) · ×16
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1177 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1177-1181 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1315-1319 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1406-1410 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7027-7031 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7157-7161 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7471-7475 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7563-7567 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7700-7704 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4792 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4792-4796 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4923-4927 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1281-1285 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6865-6869 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7968-7972 | crates/libs/windows/src/Windows/Win32/control/mod.rs:23-27 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:482-486 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:777-781 — `crates/libs/windows/src/Windows/Win32/comadmin/mod.rs` and `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1770 — crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1770-1774 | crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs:182-186 | crates/libs/windows/src/Windows/Networking/mod.rs:148-152 | crates/libs/windows/src/Windows/Storage/mod.rs:2773-2777 | crates/libs/windows/src/Windows/UI/Text/mod.rs:605-609 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2014-2018 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2840-2844 | crates/libs/windows/src/Windows/UI/Text/mod.rs:4759-4763 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:20 — crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:20-24 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:94-98 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:262-266 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:336-340 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:680-684 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:766-770 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:840-844 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:914-918 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:139 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:139-143 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:374-378 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:656-660 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:854-858 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1563-1567 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1845-1849 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2118-2122 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1139-1143 — there are 8 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Media/Core/mod.rs:73 — crates/libs/windows/src/Windows/Media/Core/mod.rs:73-77 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6020-6024 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7542-7546 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:59-63 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:273-277 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1315-1319 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2303-2307 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2461-2465 — `crates/libs/windows/src/Windows/Media/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 66 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Media/Import/mod.rs:895 — crates/libs/windows/src/Windows/Media/Import/mod.rs:895-899 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:199-203 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:776-780 | crates/libs/windows/src/Windows/Storage/mod.rs:1642-1646 | crates/libs/windows/src/Windows/Storage/mod.rs:2182-2186 | crates/libs/windows/src/Windows/Storage/mod.rs:2823-2827 | crates/libs/windows/src/Windows/Storage/mod.rs:4507-4511 | crates/libs/windows/src/Windows/Storage/mod.rs:4939-4943 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:551 — crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:551-555 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1140-1144 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1185-1189 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1223-1227 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1292-1296 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1349-1353 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1412-1416 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1481-1485 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:392 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:392-396 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:478-482 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:558-562 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:638-642 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:712-716 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:861-865 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:959-963 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1068-1072 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:399 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:399-403 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:485-489 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:565-569 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:645-649 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:719-723 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:868-872 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:966-970 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1075-1079 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:406 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:406-410 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:492-496 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:572-576 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:652-656 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:726-730 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:875-879 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:973-977 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1082-1086 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:413 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:413-417 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:499-503 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:579-583 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:659-663 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:733-737 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:882-886 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:980-984 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1089-1093 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:420 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:420-424 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:506-510 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:586-590 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:666-670 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:740-744 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:889-893 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:987-991 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1096-1100 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:427 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:427-431 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:513-517 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:593-597 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:673-677 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:747-751 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:896-900 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:994-998 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1103-1107 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:434 — crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:434-438 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:520-524 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:600-604 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:680-684 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:754-758 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:903-907 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1001-1005 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:1110-1114 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 8) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3034 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3034-3038 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3162-3166 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3232-3236 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3326-3330 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3375-3379 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3453-3457 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3502-3506 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3551-3555 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Members sharing a duplicated core (14 members, 50+ identical tokens) · ×15
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:25 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:25-31 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:280-286 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:607-613 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2001-2007 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2311-2317 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2595-2601 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2886-2892 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3326-3332 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3573-3579 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3834-3840 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4191-4197 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4434-4440 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4961-4967 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5260-5266 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:39 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:39-45 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:294-300 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:621-627 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2015-2021 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2325-2331 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2609-2615 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2900-2906 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3340-3346 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3587-3593 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3848-3854 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4205-4211 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4448-4454 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4975-4981 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5274-5280 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:53 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:53-59 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:308-314 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:635-641 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2029-2035 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2339-2345 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2623-2629 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2914-2920 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3354-3360 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3601-3607 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3862-3868 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4219-4225 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4462-4468 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4989-4995 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5288-5294 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:60 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:60-66 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:315-321 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:642-648 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2036-2042 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2346-2352 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2630-2636 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2921-2927 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3361-3367 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3608-3614 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3869-3875 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4226-4232 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4469-4475 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4996-5002 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5295-5301 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:67 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:67-73 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:322-328 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:649-655 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2043-2049 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2353-2359 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2637-2643 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2928-2934 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3368-3374 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3615-3621 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3876-3882 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4233-4239 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4476-4482 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5003-5009 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5302-5308 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:74 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:74-80 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:329-335 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:656-662 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2050-2056 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2360-2366 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2644-2650 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2935-2941 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3375-3381 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3622-3628 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3883-3889 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4240-4246 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4483-4489 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5010-5016 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5309-5315 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:81 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:81-87 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:336-342 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:663-669 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2057-2063 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2367-2373 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2651-2657 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2942-2948 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3382-3388 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3629-3635 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3890-3896 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4247-4253 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4490-4496 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5017-5023 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5316-5322 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:88 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:88-94 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:343-349 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:670-676 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2064-2070 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2374-2380 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2658-2664 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2949-2955 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3389-3395 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3636-3642 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3897-3903 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4254-4260 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4497-4503 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5024-5030 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5323-5329 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:95 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:95-101 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:350-356 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:677-683 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2071-2077 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2381-2387 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2665-2671 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2956-2962 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3396-3402 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3643-3649 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3904-3910 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4261-4267 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4504-4510 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5031-5037 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5330-5336 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:102 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:102-108 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:357-363 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:684-690 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2078-2084 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2388-2394 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2672-2678 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2963-2969 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3403-3409 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3650-3656 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3911-3917 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4268-4274 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4511-4517 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5038-5044 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5337-5343 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:109 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:109-115 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:364-370 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:691-697 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2085-2091 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2395-2401 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2679-2685 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2970-2976 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3410-3416 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3657-3663 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3918-3924 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4275-4281 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4518-4524 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5045-5051 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5344-5350 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:158 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:158-164 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:413-419 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:740-746 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2134-2140 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2444-2450 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2728-2734 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3019-3025 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3459-3465 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3706-3712 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3967-3973 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4324-4330 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4567-4573 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5094-5100 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5393-5399 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:165 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:165-171 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:420-426 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:747-753 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2141-2147 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2451-2457 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2735-2741 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3026-3032 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3466-3472 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3713-3719 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3974-3980 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4331-4337 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4574-4580 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5101-5107 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5400-5406 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:172 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:172-178 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:427-433 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:754-760 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2148-2154 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2458-2464 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2742-2748 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3033-3039 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3473-3479 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3720-3726 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3981-3987 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4338-4344 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4581-4587 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5108-5114 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5407-5413 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
  • Members sharing a duplicated core (14 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:179 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:179-185 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:434-440 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:761-767 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2155-2161 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2465-2471 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2749-2755 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3040-3046 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3480-3486 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3727-3733 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3988-3994 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4345-4351 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4588-4594 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5115-5121 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5414-5420 — These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times.
D4 · Code Duplication · Duplicated block (5 lines × 14) · ×15
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:27 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:27-31 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:282-286 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:609-613 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2003-2007 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2313-2317 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2597-2601 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2888-2892 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3328-3332 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3575-3579 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3836-3840 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4193-4197 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4436-4440 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4963-4967 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5262-5266 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:41 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:41-45 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:296-300 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:623-627 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2017-2021 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2327-2331 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2611-2615 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2902-2906 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3342-3346 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3589-3593 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3850-3854 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4207-4211 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4450-4454 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4977-4981 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5276-5280 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:55 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:55-59 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:310-314 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:637-641 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2031-2035 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2341-2345 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2625-2629 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2916-2920 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3356-3360 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3603-3607 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3864-3868 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4221-4225 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4464-4468 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4991-4995 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5290-5294 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:62 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:62-66 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:317-321 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:644-648 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2038-2042 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2348-2352 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2632-2636 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2923-2927 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3363-3367 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3610-3614 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3871-3875 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4228-4232 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4471-4475 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4998-5002 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5297-5301 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:69 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:69-73 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:324-328 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:651-655 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2045-2049 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2355-2359 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2639-2643 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2930-2934 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3370-3374 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3617-3621 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3878-3882 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4235-4239 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4478-4482 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5005-5009 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5304-5308 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:76 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:76-80 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:331-335 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:658-662 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2052-2056 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2362-2366 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2646-2650 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2937-2941 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3377-3381 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3624-3628 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3885-3889 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4242-4246 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4485-4489 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5012-5016 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5311-5315 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:83 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:83-87 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:338-342 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:665-669 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2059-2063 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2369-2373 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2653-2657 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2944-2948 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3384-3388 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3631-3635 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3892-3896 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4249-4253 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4492-4496 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5019-5023 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5318-5322 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:90 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:90-94 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:345-349 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:672-676 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2066-2070 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2376-2380 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2660-2664 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2951-2955 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3391-3395 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3638-3642 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3899-3903 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4256-4260 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4499-4503 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5026-5030 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5325-5329 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:97 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:97-101 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:352-356 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:679-683 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2073-2077 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2383-2387 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2667-2671 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2958-2962 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3398-3402 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3645-3649 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3906-3910 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4263-4267 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4506-4510 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5033-5037 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5332-5336 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:104 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:104-108 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:359-363 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:686-690 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2080-2084 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2390-2394 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2674-2678 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2965-2969 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3405-3409 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3652-3656 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3913-3917 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4270-4274 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4513-4517 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5040-5044 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5339-5343 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:111 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:111-115 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:366-370 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:693-697 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2087-2091 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2397-2401 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2681-2685 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2972-2976 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3412-3416 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3659-3663 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3920-3924 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4277-4281 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4520-4524 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5047-5051 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5346-5350 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:160 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:160-164 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:415-419 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:742-746 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2136-2140 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2446-2450 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2730-2734 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3021-3025 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3461-3465 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3708-3712 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3969-3973 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4326-4330 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4569-4573 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5096-5100 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5395-5399 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:167 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:167-171 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:422-426 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:749-753 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2143-2147 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2453-2457 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2737-2741 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3028-3032 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3468-3472 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3715-3719 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3976-3980 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4333-4337 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4576-4580 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5103-5107 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5402-5406 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:174 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:174-178 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:429-433 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:756-760 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2150-2154 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2460-2464 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2744-2748 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3035-3039 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3475-3479 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3722-3726 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3983-3987 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4340-4344 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4583-4587 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5110-5114 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5409-5413 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 14) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:181 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:181-185 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:436-440 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:763-767 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2157-2161 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2467-2471 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2751-2755 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3042-3046 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3482-3486 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3729-3733 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3990-3994 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4347-4351 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4590-4594 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5117-5121 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5416-5420 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 9) · ×15
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1157 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1157-1161 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1287-1291 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1370-1374 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6993-6997 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7128-7132 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7442-7446 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7526-7530 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7672-7676 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7925-7929 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1390 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1390-1394 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1468-1472 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1593-1597 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7455-7459 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7540-7544 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2921-2925 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3070-3074 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3902-3906 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3991-3995 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1658 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1658-1662 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:495-499 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:149-153 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:523-527 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:353-357 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:287-291 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:383-387 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:97-101 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2169-2173 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Media/Core/mod.rs:123 — crates/libs/windows/src/Windows/Media/Core/mod.rs:123-127 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6005-6009 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6085-6089 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7528-7532 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2375-2379 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2452-2456 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2535-2539 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2594-2598 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2949-2953 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Core/mod.rs` and `crates/libs/windows/src/Windows/Networking/Vpn/mod.rs` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Media/Core/mod.rs:1053 — crates/libs/windows/src/Windows/Media/Core/mod.rs:1053-1057 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5722-5726 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:123-127 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:287-291 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1365-1369 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2371-2375 | crates/libs/windows/src/Windows/Media/mod.rs:139-143 | crates/libs/windows/src/Windows/Media/mod.rs:2652-2656 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1540-1544 — `crates/libs/windows/src/Windows/Media/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 66 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2158 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2158-2162 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2564-2568 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3935-3939 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4051-4055 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4229-4233 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4451-4455 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4726-4730 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4824-4828 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5043-5047 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2165 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2165-2169 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2571-2575 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3942-3946 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4058-4062 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4236-4240 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4458-4462 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4733-4737 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4831-4835 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5050-5054 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2176 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2176-2180 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2582-2586 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3953-3957 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4069-4073 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4247-4251 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4469-4473 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4744-4748 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4842-4846 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5061-5065 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2183 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2183-2187 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2589-2593 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3960-3964 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4076-4080 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4254-4258 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4476-4480 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4751-4755 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4849-4853 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5068-5072 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2190 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2190-2194 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2596-2600 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3967-3971 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4083-4087 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4261-4265 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4483-4487 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4758-4762 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4856-4860 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5075-5079 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2593 — crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2593-2597 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2739-2743 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2826-2830 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3294-3298 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3387-3391 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3452-3456 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3889-3893 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3977-3981 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4131-4135 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3159 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3159-3163 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3928-3932 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4800-4804 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5746-5750 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6795-6799 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8370-8374 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9960-9964 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11562-11566 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13179-13183 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3313 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3313-3317 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4082-4086 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4954-4958 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5900-5904 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6949-6953 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8524-8528 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10114-10118 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11716-11720 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13333-13337 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2484 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2484-2488 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8588-8592 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5072-5076 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11191-11195 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11378-11382 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12218-12222 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12565-12569 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12657-12661 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12798-12802 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 9) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3176 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3176-3180 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3945-3949 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4817-4821 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5763-5767 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6812-6816 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8387-8391 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9977-9981 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11579-11583 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13196-13200 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D2 · Cognitive Complexity · Pump · ×14
  • Pump::reconcile_planned_view (cognitive 174) crates/libs/reactor/src/core/pump/planner/view.rs:69 — Pump::reconcile_planned_view has cognitive complexity 174 (threshold 15). Drivers by points: if/else 62 (132 pts), match/switch 5 (16 pts), boolean chains 14, loops 4 (12 pts) (nesting depth added 89). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::dispatch_events (cognitive 109) crates/libs/reactor/src/core/pump/native_work.rs:92 — Pump::dispatch_events has cognitive complexity 109 (threshold 15). Drivers by points: if/else 34 (81 pts), match/switch 6 (16 pts), boolean chains 6, loops 4 (6 pts) (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::mount_planned_view (cognitive 106) crates/libs/reactor/src/core/pump/planner/view.rs:1802 — Pump::mount_planned_view has cognitive complexity 106 (threshold 15). Drivers by points: if/else 28 (63 pts), loops 9 (21 pts), match/switch 6 (16 pts), boolean chains 6 (nesting depth added 57). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::node_matches_view_kind (cognitive 95) crates/libs/reactor/src/core/pump/planner/view.rs:814 — Pump::node_matches_view_kind has cognitive complexity 95 (threshold 15). Drivers by points: if/else 31 (72 pts), boolean chains 12, match/switch 3 (9 pts), loops 1 (2 pts) (nesting depth added 48). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
  • Pump::reconcile_node (cognitive 76) crates/libs/reactor/src/core/pump/planner/element.rs:111 — Pump::reconcile_node has cognitive complexity 76 (threshold 15). Drivers by points: if/else 23 (51 pts), loops 6 (16 pts), boolean chains 5, match/switch 3 (4 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::retire_planned_subtree (cognitive 66) crates/libs/reactor/src/core/pump/planner/topology.rs:620 — Pump::retire_planned_subtree has cognitive complexity 66 (threshold 15). Drivers by points: if/else 15 (42 pts), match/switch 5 (14 pts), loops 5 (7 pts), boolean chains 3 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::process_realizations (cognitive 57) crates/libs/reactor/src/core/pump/native_work.rs:419 — Pump::process_realizations has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (38 pts), loops 4 (10 pts), match/switch 3 (5 pts), boolean chains 4 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::native_attachment (cognitive 38) crates/libs/reactor/src/core/pump/planner/topology.rs:142 — Pump::native_attachment has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::replace_planned_view (cognitive 30) crates/libs/reactor/src/core/pump/planner/view.rs:1537 — Pump::replace_planned_view has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (22 pts), match/switch 3 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • Pump::try_local_component_update (cognitive 26) crates/libs/reactor/src/core/pump/turn.rs:223 — Pump::try_local_component_update has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 5, boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
  • Pump::observe_selection (cognitive 25) crates/libs/reactor/src/core/pump/native_work.rs:340 — Pump::observe_selection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::reconcile_keyed_child_list (cognitive 24) crates/libs/reactor/src/core/pump/planner/view.rs:677 — Pump::reconcile_keyed_child_list has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::node_matches_element (cognitive 23) crates/libs/reactor/src/core/pump/planner/element.rs:321 — Pump::node_matches_element has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 3 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Pump::compose_dirty_components (cognitive 20) crates/libs/reactor/src/core/pump/turn.rs:85 — Pump::compose_dirty_components has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Duplicated block (6 lines × 9) · ×14
  • Duplicated block (6 lines × 9) crates/libs/reactor/src/native/winui/bindings.rs:9502 — crates/libs/reactor/src/native/winui/bindings.rs:9502-9507 | crates/libs/reactor/src/native/winui/bindings.rs:9532-9537 | crates/libs/reactor/src/native/winui/bindings.rs:9984-9989 | crates/libs/reactor/src/native/winui/bindings.rs:15114-15119 | crates/libs/reactor/src/native/winui/bindings.rs:17487-17492 | crates/libs/reactor/src/native/winui/bindings.rs:17690-17695 | crates/libs/reactor/src/native/winui/bindings.rs:18163-18168 | crates/libs/reactor/src/native/winui/bindings.rs:19226-19231 | crates/libs/reactor/src/native/winui/bindings.rs:19258-19263 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:90 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:90-95 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:79-84 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:232-237 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:176-181 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:752-757 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:3070-3075 | crates/libs/windows/src/Windows/Management/Update/mod.rs:956-961 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1271-1276 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2132-2137 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/AI/Actions/mod.rs:1927 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:1927-1932 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1983-1988 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2384-2389 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2542-2547 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2711-2716 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2791-2796 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2960-2965 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3061-3066 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4685-4690 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1626 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1626-1631 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:172-177 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:85-90 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:189-194 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:213-218 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:8-13 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:156-161 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:13-18 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:372-377 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Media/Audio/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1168 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1168-1173 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1382-1387 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1991-1996 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2926-2931 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3789-3794 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3943-3948 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4200-4205 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2604-2609 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2838-2843 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1231 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1231-1236 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4032-4037 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:808-813 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1557-1562 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:869-874 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:564-569 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1155-1160 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4254-4259 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2671-2676 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:30 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:30-35 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:225-230 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:327-332 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:489-494 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:672-677 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:927-932 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1329-1334 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:90-95 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2836-2841 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:446 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:446-451 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:141-146 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:667-672 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1990-1995 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:462-467 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:961-966 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:244-249 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:597-602 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:362-367 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:375 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:375-380 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2374-2379 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:931-936 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1272-1277 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1482-1487 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2607-2612 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2719-2724 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2844-2849 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2967-2972 — `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 19 separate duplicated blocks between them, totalling at least 113 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:835 — crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:835-840 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:15-20 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1070-1075 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2029-2034 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:6382-6387 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7326-7331 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8160-8165 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:559-564 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3340-3345 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` and `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/Data/Text/mod.rs:385 — crates/libs/windows/src/Windows/Data/Text/mod.rs:385-390 | crates/libs/windows/src/Windows/Data/Text/mod.rs:483-488 | crates/libs/windows/src/Windows/Data/Text/mod.rs:565-570 | crates/libs/windows/src/Windows/Data/Text/mod.rs:698-703 | crates/libs/windows/src/Windows/Data/Text/mod.rs:1007-1012 | crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs:99-104 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:791-796 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1607-1612 | crates/libs/windows/src/Windows/Globalization/mod.rs:569-574 — `crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs` and `crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/Devices/Custom/mod.rs:14 — crates/libs/windows/src/Windows/Devices/Custom/mod.rs:14-19 | crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs:284-289 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:593-598 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:1619-1624 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:202-207 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1478-1483 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2651-2656 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2774-2779 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:3194-3199 — there are 9 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:161 — crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:161-166 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:100-105 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:741-746 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1308-1313 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6030-6035 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6122-6127 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:18-23 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:809-814 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:590-595 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 9) crates/libs/windows/src/Windows/Media/Audio/mod.rs:671 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:671-676 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:52-57 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:11-16 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3658-3663 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7622-7627 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7668-7673 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7706-7711 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3708-3713 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:21-26 — `crates/libs/windows/src/Windows/Media/Audio/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 68 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D1 · Cyclomatic Complexity · Pump · ×12
  • Pump::reconcile_planned_view (cyclomatic 96) crates/libs/reactor/src/core/pump/planner/view.rs:69 — Pump::reconcile_planned_view has cyclomatic complexity 96 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::mount_planned_view (cyclomatic 66) crates/libs/reactor/src/core/pump/planner/view.rs:1802 — Pump::mount_planned_view has cyclomatic complexity 66 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::node_matches_view_kind (cyclomatic 59) crates/libs/reactor/src/core/pump/planner/view.rs:814 — Pump::node_matches_view_kind has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::dispatch_events (cyclomatic 54) crates/libs/reactor/src/core/pump/native_work.rs:92 — Pump::dispatch_events has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::reconcile_node (cyclomatic 40) crates/libs/reactor/src/core/pump/planner/element.rs:111 — Pump::reconcile_node has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::retire_planned_subtree (cyclomatic 39) crates/libs/reactor/src/core/pump/planner/topology.rs:620 — Pump::retire_planned_subtree has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::replace_planned_view (cyclomatic 31) crates/libs/reactor/src/core/pump/planner/view.rs:1537 — Pump::replace_planned_view has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • Pump::process_realizations (cyclomatic 28) crates/libs/reactor/src/core/pump/native_work.rs:419 — Pump::process_realizations has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::try_local_component_update (cyclomatic 27) crates/libs/reactor/src/core/pump/turn.rs:223 — Pump::try_local_component_update has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • Pump::node_matches_element (cyclomatic 22) crates/libs/reactor/src/core/pump/planner/element.rs:321 — Pump::node_matches_element has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::native_attachment (cyclomatic 22) crates/libs/reactor/src/core/pump/planner/topology.rs:142 — Pump::native_attachment has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Pump::reconcile_keyed_child_list (cyclomatic 17) crates/libs/reactor/src/core/pump/planner/view.rs:677 — Pump::reconcile_keyed_child_list has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D4 · Code Duplication · Members sharing a duplicated core (12 members, 50+ identical tokens) · ×11
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7531 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7531-7537 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4017-4023 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2142-2148 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2548-2554 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3919-3925 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4035-4041 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4213-4219 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4435-4441 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4710-4716 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4808-4814 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5027-5033 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3982-3988 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:71 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:71-82 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:86-97 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:306-317 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:321-332 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:588-599 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:603-614 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1495-1506 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1510-1521 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1777-1788 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1792-1803 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2050-2061 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2065-2076 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:978 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:978-984 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1071-1077 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1164-1170 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1257-1263 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1506-1512 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1804-1810 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1897-1903 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1968-1974 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2061-2067 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2219-2225 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2397-2403 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2490-2496 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Audio/mod.rs:69 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:69-75 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:182-188 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:476-482 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:603-609 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:803-809 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:898-904 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2223-2229 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3136-3142 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3315-3321 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3817-3823 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4591-4597 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6011-6017 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/mod.rs:1303 — crates/libs/windows/src/Windows/Media/mod.rs:1303-1313 | crates/libs/windows/src/Windows/Media/mod.rs:1317-1327 | crates/libs/windows/src/Windows/Media/mod.rs:1331-1341 | crates/libs/windows/src/Windows/Media/mod.rs:1345-1355 | crates/libs/windows/src/Windows/Media/mod.rs:1359-1369 | crates/libs/windows/src/Windows/Media/mod.rs:1373-1383 | crates/libs/windows/src/Windows/Media/mod.rs:1387-1397 | crates/libs/windows/src/Windows/Media/mod.rs:1401-1411 | crates/libs/windows/src/Windows/Media/mod.rs:1415-1425 | crates/libs/windows/src/Windows/Media/mod.rs:1429-1439 | crates/libs/windows/src/Windows/Media/mod.rs:1443-1453 | crates/libs/windows/src/Windows/Media/mod.rs:1457-1467 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:367 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:367-373 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:481-487 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:589-595 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:891-897 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1215-1221 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1458-1464 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1809-1815 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1973-1979 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2250-2256 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2435-2441 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2647-2653 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2802-2808 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:378 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:378-384 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:492-498 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:600-606 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:902-908 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1226-1232 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1469-1475 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1820-1826 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1984-1990 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2261-2267 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2446-2452 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2658-2664 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2813-2819 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:400 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:400-406 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:514-520 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:622-628 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:924-930 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1248-1254 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1491-1497 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1842-1848 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2006-2012 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2283-2289 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2468-2474 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2680-2686 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2835-2841 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:414 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:414-420 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:528-534 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:636-642 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:938-944 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1262-1268 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1505-1511 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1856-1862 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2020-2026 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2297-2303 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2482-2488 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2694-2700 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2849-2855 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:421 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:421-427 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:535-541 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:643-649 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:945-951 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1269-1275 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1512-1518 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1863-1869 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2027-2033 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2304-2310 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2489-2495 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2701-2707 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2856-2862 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
  • Members sharing a duplicated core (12 members, 50+ identical tokens) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:429 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:429-435 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:543-549 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:651-657 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:953-959 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1277-1283 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1520-1526 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1871-1877 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2035-2041 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2312-2318 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2497-2503 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2709-2715 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2864-2870 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×11
  • Duplicated block (8 lines × 4) crates/libs/reactor/src/native/winui/bindings.rs:477 — crates/libs/reactor/src/native/winui/bindings.rs:477-484 | crates/libs/reactor/src/native/winui/bindings.rs:27338-27345 | crates/libs/reactor/src/native/winui/bindings.rs:28988-28995 | crates/libs/reactor/src/native/winui/bindings.rs:29073-29080 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 4) crates/libs/reactor/src/native/winui/bindings.rs:25073 — crates/libs/reactor/src/native/winui/bindings.rs:25073-25080 | crates/libs/reactor/src/native/winui/bindings.rs:25701-25708 | crates/libs/reactor/src/native/winui/bindings.rs:27217-27224 | crates/libs/reactor/src/native/winui/bindings.rs:28569-28576 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5224 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5224-5231 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11464-11471 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15440-15447 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16419-16426 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7928 — crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7928-7935 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8030-8037 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8133-8140 | crates/libs/windows/src/Windows/Win32/control/mod.rs:85-92 — `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` and `crates/libs/windows/src/Windows/Win32/control/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4712 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4712-4719 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4889-4896 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:5437-5444 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:5606-5613 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7496 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7496-7503 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:10355-10362 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:15537-15544 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3200-3207 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8003 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8003-8010 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8295-8302 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11797-11804 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:17076-17083 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:14274 — crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:14274-14281 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18268-18275 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19290-19297 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:20271-20278 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22803 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22803-22810 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25791-25798 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28841-28848 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31920-31927 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22815 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22815-22822 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25803-25810 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28853-28860 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31932-31939 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 4) crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:1598 — crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:1598-1605 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:1955-1962 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:2350-2357 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:2796-2803 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D2 · Cognitive Complexity · windows_bindgen · ×10
  • windows_bindgen::filter_parser::parse_tree (cognitive 34) crates/libs/bindgen/src/filter_parser.rs:37 — windows_bindgen::filter_parser::parse_tree has cognitive complexity 34 (threshold 15). Drivers by points: loops 7 (26 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
  • windows_bindgen::filter_parser::resolve_one (cognitive 27) crates/libs/bindgen/src/filter_parser.rs:171 — windows_bindgen::filter_parser::resolve_one has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_bindgen::compute_event_only_delegates (cognitive 26) crates/libs/bindgen/src/lib.rs:787 — windows_bindgen::compute_event_only_delegates has cognitive complexity 26 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 4 (10 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_bindgen::format::replace_outside_strings (cognitive 23) crates/libs/bindgen/src/format.rs:58 — windows_bindgen::format::replace_outside_strings has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (10 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_bindgen::method_names::method_def_special_name (cognitive 23) crates/libs/bindgen/src/method_names.rs:52 — windows_bindgen::method_names::method_def_special_name has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_bindgen::format::tighten_macro_segment (cognitive 20) crates/libs/bindgen/src/format.rs:196 — windows_bindgen::format::tighten_macro_segment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_bindgen::expand_input (cognitive 19) crates/libs/bindgen/src/lib.rs:722 — windows_bindgen::expand_input has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (expand_path). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • windows_bindgen::cli::read_tokens (cognitive 18) crates/libs/bindgen/src/cli.rs:226 — windows_bindgen::cli::read_tokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_bindgen::cli::bindgen (cognitive 17) crates/libs/bindgen/src/cli.rs:78 — windows_bindgen::cli::bindgen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_bindgen::format::find_matching_delim (cognitive 17) crates/libs/bindgen/src/format.rs:167 — windows_bindgen::format::find_matching_delim has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Duplicated block (5 lines × 13) · ×9
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/AI/Actions/mod.rs:631 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:631-635 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:712-716 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:775-779 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:867-871 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:929-933 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:979-983 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1029-1033 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1699-1703 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1749-1753 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1904-1908 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2048-2052 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2110-2114 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2167-2171 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/AI/Actions/mod.rs:638 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:638-642 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:719-723 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:782-786 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:874-878 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:936-940 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:986-990 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1036-1040 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1706-1710 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1756-1760 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1911-1915 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2055-2059 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2117-2121 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2174-2178 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1913 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1913-1917 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2028-2032 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2202-2206 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2317-2321 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2432-2436 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2547-2551 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2662-2666 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2777-2781 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2920-2924 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3025-3029 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3140-3144 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3255-3259 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3370-3374 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1920 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1920-1924 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2035-2039 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2209-2213 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2324-2328 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2439-2443 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2554-2558 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2669-2673 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2784-2788 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2927-2931 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3032-3036 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3147-3151 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3262-3266 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3377-3381 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1498 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1498-1502 | crates/libs/windows/src/Windows/Foundation/mod.rs:371-375 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:225-229 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4599-4603 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5508-5512 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1501-1505 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2662-2666 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2785-2789 | crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs:11-15 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1489-1493 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3492-3496 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4460-4464 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:151-155 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3433 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3433-3437 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2908-2912 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:927-931 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:348-352 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1501-1505 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:131-135 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:913-917 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3154-3158 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:711-715 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:308-312 | crates/libs/windows/src/Windows/System/mod.rs:195-199 | crates/libs/windows/src/Windows/System/mod.rs:592-596 | crates/libs/windows/src/Windows/System/mod.rs:4276-4280 — `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2852 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2852-2856 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:292-296 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1445-1449 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:114-118 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:871-875 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:655-659 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:280-284 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1112-1116 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2331-2335 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2500-2504 | crates/libs/windows/src/Windows/System/mod.rs:153-157 | crates/libs/windows/src/Windows/System/mod.rs:550-554 | crates/libs/windows/src/Windows/System/mod.rs:4192-4196 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2866 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2866-2870 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:320-324 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1473-1477 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:128-132 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:899-903 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:669-673 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1140-1144 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:482-486 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2345-2349 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2528-2532 | crates/libs/windows/src/Windows/System/mod.rs:167-171 | crates/libs/windows/src/Windows/System/mod.rs:564-568 | crates/libs/windows/src/Windows/System/mod.rs:4206-4210 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 13) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2221 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2221-2225 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3076-3080 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:47-51 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1968-1972 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2583-2587 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:36-40 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:538-542 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:346-350 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1358-1362 | crates/libs/windows/src/Windows/Media/mod.rs:1781-1785 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:661-665 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:353-357 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:763-767 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` and `crates/libs/windows/src/Windows/Media/Audio/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 12) · ×9
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7533 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7533-7537 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4019-4023 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2144-2148 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2550-2554 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3921-3925 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4037-4041 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4215-4219 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4437-4441 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4712-4716 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4810-4814 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5029-5033 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3984-3988 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:980 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:980-984 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1073-1077 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1166-1170 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1259-1263 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1508-1512 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1806-1810 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1899-1903 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1970-1974 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2063-2067 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2221-2225 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2399-2403 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2492-2496 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Media/Audio/mod.rs:71 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:71-75 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:184-188 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:478-482 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:605-609 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:805-809 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:900-904 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2225-2229 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3138-3142 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3317-3321 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3819-3823 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4593-4597 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6013-6017 — `crates/libs/windows/src/Windows/Media/Audio/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:369 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:369-373 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:483-487 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:591-595 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:893-897 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1217-1221 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1460-1464 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1811-1815 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1975-1979 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2252-2256 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2437-2441 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2649-2653 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2804-2808 — `crates/libs/windows/src/Windows/Web/AtomPub/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:380 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:380-384 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:494-498 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:602-606 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:904-908 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1228-1232 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1471-1475 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1822-1826 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1986-1990 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2263-2267 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2448-2452 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2660-2664 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2815-2819 — `crates/libs/windows/src/Windows/Web/AtomPub/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:402 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:402-406 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:516-520 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:624-628 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:926-930 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1250-1254 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1493-1497 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1844-1848 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2008-2012 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2285-2289 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2470-2474 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2682-2686 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2837-2841 — `crates/libs/windows/src/Windows/Web/AtomPub/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:416 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:416-420 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:530-534 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:638-642 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:940-944 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1264-1268 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1507-1511 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1858-1862 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2022-2026 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2299-2303 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2484-2488 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2696-2700 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2851-2855 — `crates/libs/windows/src/Windows/Web/AtomPub/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:423 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:423-427 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:537-541 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:645-649 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:947-951 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1271-1275 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1514-1518 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1865-1869 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2029-2033 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2306-2310 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2491-2495 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2703-2707 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2858-2862 — `crates/libs/windows/src/Windows/Web/AtomPub/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 12) crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:431 — crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:431-435 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:545-549 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:653-657 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:955-959 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1279-1283 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1522-1526 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1873-1877 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2037-2041 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2314-2318 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2499-2503 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2711-2715 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2866-2870 — `crates/libs/windows/src/Windows/Web/AtomPub/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D2 · Cognitive Complexity · Encoder · ×8
  • Encoder::encode_interface (cognitive 112) crates/libs/rdl/src/reader/interface.rs:108 — Encoder::encode_interface has cognitive complexity 112 (threshold 15). Drivers by points: if/else 30 (89 pts), loops 7 (13 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Encoder::encode_path (cognitive 43) crates/libs/rdl/src/reader/mod.rs:1041 — Encoder::encode_path has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (28 pts), loops 4 (8 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Encoder::find_enum_variant_value (cognitive 34) crates/libs/rdl/src/reader/attribute_ref.rs:341 — Encoder::find_enum_variant_value has cognitive complexity 34 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (10 pts), loops 3 (8 pts), boolean chains 3 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Encoder::encode_attr_value (cognitive 29) crates/libs/rdl/src/reader/attribute_ref.rs:253 — Encoder::encode_attr_value has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 4 (8 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 17). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
  • Encoder::find_in_reference (cognitive 28) crates/libs/rdl/src/reader/attribute_ref.rs:91 — Encoder::find_in_reference has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (10 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Encoder::encode_record (cognitive 21) crates/libs/rdl/src/reader/struct.rs:49 — Encoder::encode_record has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Encoder::encode_type_in_attr_ns (cognitive 19) crates/libs/rdl/src/reader/mod.rs:601 — Encoder::encode_type_in_attr_ns has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Encoder::parse_param_attributes (cognitive 19) crates/libs/rdl/src/reader/param.rs:11 — Encoder::parse_param_attributes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · windows_rdl · ×8
  • windows_rdl::formatter::format_seq (cognitive 51) crates/libs/rdl/src/formatter/mod.rs:12 — windows_rdl::formatter::format_seq has cognitive complexity 51 (threshold 15). Drivers by points: if/else 14 (37 pts), match/switch 3 (8 pts), boolean chains 5, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_rdl::writer::interface::write_members (cognitive 50) crates/libs/rdl/src/writer/interface.rs:51 — windows_rdl::writer::interface::write_members has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (46 pts), boolean chains 3, loops 1 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • windows_rdl::expand_input_paths (cognitive 31) crates/libs/rdl/src/lib.rs:219 — windows_rdl::expand_input_paths has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_rdl::emit::write_type (cognitive 29) crates/libs/rdl/src/emit.rs:31 — windows_rdl::emit::write_type has cognitive complexity 29 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 6 (13 pts), boolean chains 1, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
  • windows_rdl::writer::write_enum_value (cognitive 28) crates/libs/rdl/src/writer/mod.rs:696 — windows_rdl::writer::write_enum_value has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_rdl::writer::write_custom_attributes_except (cognitive 19) crates/libs/rdl/src/writer/mod.rs:615 — windows_rdl::writer::write_custom_attributes_except has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • windows_rdl::merge_arch_rdl (cognitive 16) crates/libs/rdl/src/lib.rs:127 — windows_rdl::merge_arch_rdl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_rdl::writer::resolve_filter (cognitive 16) crates/libs/rdl/src/writer/mod.rs:278 — windows_rdl::writer::resolve_filter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tool_reactor · ×8
  • tool_reactor::generate_winui::generate_event_arm (cognitive 49) crates/tools/reactor/src/generate_winui.rs:1022 — tool_reactor::generate_winui::generate_event_arm has cognitive complexity 49 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 8, match/switch 5 (8 pts) (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • tool_reactor::generate_winui::generate_control_bindings_filter (cognitive 41) crates/tools/reactor/src/generate_winui.rs:12 — tool_reactor::generate_winui::generate_control_bindings_filter has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 4 (11 pts), loops 4 (7 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • tool_reactor::generate_surface::generate (cognitive 39) crates/tools/reactor/src/generate_surface.rs:10 — tool_reactor::generate_surface::generate has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 4 (14 pts), loops 4 (8 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • tool_reactor::generate::generate_element (cognitive 36) crates/tools/reactor/src/generate.rs:1363 — tool_reactor::generate::generate_element has cognitive complexity 36 (threshold 15). Drivers by points: if/else 29 (30 pts), match/switch 4, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • tool_reactor::generate_winui::generate_set_property (cognitive 31) crates/tools/reactor/src/generate_winui.rs:1819 — tool_reactor::generate_winui::generate_set_property has cognitive complexity 31 (threshold 15). Drivers by points: if/else 29 (31 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • tool_reactor::schema::resolve_slot_item_controls (cognitive 24) crates/tools/reactor/src/schema.rs:1937 — tool_reactor::schema::resolve_slot_item_controls has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (7 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • tool_reactor::schema::validate_selections (cognitive 23) crates/tools/reactor/src/schema.rs:1980 — tool_reactor::schema::validate_selections has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • tool_reactor::generate_winui::generate (cognitive 20) crates/tools/reactor/src/generate_winui.rs:246 — tool_reactor::generate_winui::generate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×8
  • Duplicated block (13 lines × 2) crates/libs/reactor/src/app/mod.rs:684 — crates/libs/reactor/src/app/mod.rs:684-696 | crates/libs/reactor/src/app/mod.rs:705-717 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:435 — crates/libs/reactor/src/core/pump/planner/view.rs:435-447 | crates/libs/reactor/src/core/pump/planner/view.rs:479-491 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1380 — crates/libs/reactor/src/core/pump/planner/view.rs:1380-1392 | crates/libs/reactor/src/core/pump/planner/view.rs:1477-1489 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1749 — crates/libs/reactor/src/core/pump/planner/view.rs:1749-1761 | crates/libs/reactor/src/core/pump/planner/view.rs:1839-1851 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:1418 — crates/libs/reactor/src/native/winui/mod.rs:1418-1430 | crates/libs/reactor/src/native/winui/mod.rs:1587-1599 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:3031 — crates/libs/reactor/src/native/winui/mod.rs:3031-3043 | crates/libs/reactor/src/native/winui/mod.rs:3078-3090 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:623 — crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:623-635 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:744-756 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) crates/libs/reactor/src/app/test.rs:134 — crates/libs/reactor/src/app/test.rs:134-146 | crates/libs/reactor/src/app/test.rs:166-178 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (6 lines × 13) · ×8
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/Media/mod.rs:1766 — crates/libs/windows/src/Windows/Media/mod.rs:1766-1771 | crates/libs/windows/src/Windows/Media/mod.rs:1780-1785 | crates/libs/windows/src/Windows/Media/mod.rs:1833-1838 | crates/libs/windows/src/Windows/Storage/mod.rs:179-184 | crates/libs/windows/src/Windows/Storage/mod.rs:5176-5181 | crates/libs/windows/src/Windows/System/mod.rs:180-185 | crates/libs/windows/src/Windows/System/mod.rs:194-199 | crates/libs/windows/src/Windows/System/mod.rs:577-582 | crates/libs/windows/src/Windows/System/mod.rs:591-596 | crates/libs/windows/src/Windows/System/mod.rs:1077-1082 | crates/libs/windows/src/Windows/System/mod.rs:1271-1276 | crates/libs/windows/src/Windows/System/mod.rs:4261-4266 | crates/libs/windows/src/Windows/System/mod.rs:4275-4280 — `crates/libs/windows/src/Windows/Media/mod.rs` and `crates/libs/windows/src/Windows/Storage/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:622 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:622-627 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2842-2847 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6446-6451 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6799-6804 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7984-7989 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8153-8158 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2090-2095 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2522-2527 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:418-423 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1524-1529 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1999-2004 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4419-4424 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5121-5126 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:452 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:452-457 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:165-170 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1984-1989 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:991-996 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:419-424 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:238-243 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:603-608 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:397-402 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:427-432 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:935-940 | crates/libs/windows/src/Windows/Media/Playlists/mod.rs:57-62 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1186-1191 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:384-389 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1906 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1906-1911 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2321-2326 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:227-232 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:815-820 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1077-1082 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1741-1746 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1069-1074 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3528-3533 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:356-361 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1662-1667 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2812-2817 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:921-926 | crates/libs/windows/src/Windows/Storage/mod.rs:5288-5293 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 14 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:14 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:14-19 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:477-482 | crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:21-26 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:23-28 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:619-624 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:774-779 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:973-978 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1253-1258 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4526-4531 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4809-4814 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5089-5094 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5427-5432 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5670-5675 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sensors/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:27 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:27-32 | crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:12-17 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:14-19 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:357-362 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:610-615 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:765-770 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:964-969 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1244-1249 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4517-4522 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4800-4805 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5080-5085 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5418-5423 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5661-5666 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sensors/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:233 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:233-238 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:917-922 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:415-420 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:82-87 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1810-1815 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1883-1888 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2089-2094 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2232-2237 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2853-2858 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:8-13 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1284-1289 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1455-1460 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2090-2095 — `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 13) crates/libs/windows/src/Windows/Foundation/mod.rs:2169 — crates/libs/windows/src/Windows/Foundation/mod.rs:2169-2174 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:355-360 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:559-564 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:860-865 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2015-2020 | crates/libs/windows/src/Windows/Storage/mod.rs:2546-2551 | crates/libs/windows/src/Windows/Storage/mod.rs:5246-5251 | crates/libs/windows/src/Windows/Web/Http/mod.rs:407-412 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:4199-4204 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4786-4791 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6653-6658 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9598-9603 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10311-10316 — before extracting anything, compare `crates/libs/windows/src/Windows/Foundation/mod.rs` and `crates/libs/windows/src/Windows/Storage/Provider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 12) · ×8
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/Media/mod.rs:1304 — crates/libs/windows/src/Windows/Media/mod.rs:1304-1309 | crates/libs/windows/src/Windows/Media/mod.rs:1318-1323 | crates/libs/windows/src/Windows/Media/mod.rs:1332-1337 | crates/libs/windows/src/Windows/Media/mod.rs:1346-1351 | crates/libs/windows/src/Windows/Media/mod.rs:1360-1365 | crates/libs/windows/src/Windows/Media/mod.rs:1374-1379 | crates/libs/windows/src/Windows/Media/mod.rs:1388-1393 | crates/libs/windows/src/Windows/Media/mod.rs:1402-1407 | crates/libs/windows/src/Windows/Media/mod.rs:1416-1421 | crates/libs/windows/src/Windows/Media/mod.rs:1430-1435 | crates/libs/windows/src/Windows/Media/mod.rs:1444-1449 | crates/libs/windows/src/Windows/Media/mod.rs:1458-1463 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:720 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:720-725 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:847-852 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1022-1027 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1088-1093 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2995-3000 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3237-3242 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3529-3534 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3659-3664 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2068-2073 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2219-2224 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2434-2439 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2512-2517 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:726 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:726-731 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:853-858 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1028-1033 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1094-1099 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3001-3006 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3243-3248 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3535-3540 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3665-3670 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2074-2079 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2225-2230 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2440-2445 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2518-2523 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:243 — crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:243-248 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:308-313 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:617-622 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:782-787 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:2839-2844 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1623-1628 | crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs:516-521 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:805-810 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:6504-6509 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2459-2464 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:230-235 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:290-295 — `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 19 separate duplicated blocks between them, totalling at least 113 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:699 — crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:699-704 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:918-923 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:396-401 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2935-2940 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:6-11 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:72-77 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:360-365 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:562-567 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:645-650 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:714-719 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:844-849 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:932-937 — before extracting anything, compare `crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs` and `crates/libs/windows/src/Windows/UI/Text/Core/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:537 — crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:537-542 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:1721-1726 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1190-1195 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1044-1049 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1108-1113 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1305-1310 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3837-3842 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4480-4485 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4532-4537 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4594-4599 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2656-2661 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:1019-1024 — before extracting anything, compare `crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs` and `crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:6 — crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:6-11 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:8-13 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:598-603 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:753-758 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:958-963 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1238-1243 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1810-1815 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4511-4516 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4794-4799 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5074-5079 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5412-5417 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5892-5897 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sensors/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 12) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:341 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:341-346 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2044-2049 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3665-3670 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4243-4248 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4623-4628 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4833-4838 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5003-5008 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5212-5217 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5383-5388 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6592-6597 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:760-765 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1513-1518 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5 lines × 11) · ×8
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:18 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:18-22 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:382-386 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:885-889 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:149-153 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7249-7253 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:802-806 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:899-903 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:26-30 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:137-141 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:818-822 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:1273-1277 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/mod.rs` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2880 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2880-2884 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:306-310 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1459-1463 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:142-146 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5269-5273 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:927-931 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:683-687 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1126-1130 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:468-472 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2514-2518 | crates/libs/windows/src/Windows/System/mod.rs:4220-4224 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:369 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:369-373 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1179-1183 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:171-175 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:437-441 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1821-1825 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3606-3610 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3710-3714 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:217-221 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:329-333 | crates/libs/windows/src/Windows/Web/Http/mod.rs:494-498 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:1227-1231 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs` and `crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1314 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1314-1318 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1968-1972 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3462-3466 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:199-203 | crates/libs/windows/src/Windows/Storage/Compression/mod.rs:75-79 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:932-936 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:615-619 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2233-2237 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2502-2506 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2621-2625 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2877-2881 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:599 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:599-603 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:712-716 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:872-876 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:941-945 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1068-1072 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1131-1135 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1200-1204 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1263-1267 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1320-1324 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1651-1655 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:488-492 — there are 11 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 11 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/Media/Audio/mod.rs:52 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:52-56 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:165-169 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:459-463 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:586-590 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:786-790 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:881-885 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2206-2210 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3119-3123 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3298-3302 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3800-3804 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4574-4578 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/Media/Audio/mod.rs:63 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:63-67 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:176-180 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:470-474 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:597-601 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:797-801 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:892-896 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2217-2221 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3130-3134 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3309-3313 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3811-3815 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4585-4589 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 11) crates/libs/windows/src/Windows/Media/Audio/mod.rs:78 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:78-82 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:191-195 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:485-489 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:612-616 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:812-816 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:907-911 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2232-2236 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3145-3149 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3324-3328 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3826-3830 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4600-4604 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Members sharing a duplicated core (10 members, 50+ identical tokens) · ×7
  • Members sharing a duplicated core (10 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1415 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1415-1421 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:690-696 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:871-877 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:23-29 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:136-142 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:342-348 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1001-1007 | crates/libs/windows/src/Windows/Storage/mod.rs:301-307 | crates/libs/windows/src/Windows/Storage/mod.rs:470-476 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:205-211 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
  • Members sharing a duplicated core (10 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:383 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:383-388 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1193-1198 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:185-190 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:451-456 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1835-1840 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3620-3625 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3724-3729 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:231-236 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:343-348 | crates/libs/windows/src/Windows/Web/Http/mod.rs:508-513 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
  • Members sharing a duplicated core (10 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:589 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:589-595 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:702-708 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:862-868 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:931-937 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1058-1064 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1121-1127 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1190-1196 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1253-1259 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1310-1316 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1641-1647 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
  • Members sharing a duplicated core (10 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:604 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:604-610 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:717-723 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:877-883 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:946-952 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1073-1079 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1136-1142 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1205-1211 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1268-1274 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1325-1331 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1656-1662 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
  • Members sharing a duplicated core (10 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2128 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2128-2134 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2534-2540 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2777-2783 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3878-3884 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4003-4009 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4199-4205 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4383-4389 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4687-4693 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4794-4800 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4971-4977 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
  • Members sharing a duplicated core (10 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2135 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2135-2141 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2541-2547 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2784-2790 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3885-3891 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4010-4016 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4206-4212 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4390-4396 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4694-4700 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4801-4807 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4978-4984 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
  • Members sharing a duplicated core (10 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Core/mod.rs:37 — crates/libs/windows/src/Windows/UI/Core/mod.rs:37-43 | crates/libs/windows/src/Windows/UI/Core/mod.rs:94-100 | crates/libs/windows/src/Windows/UI/Core/mod.rs:161-167 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4895-4901 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4929-4935 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4977-4983 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5079-5085 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5140-5146 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5174-5180 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5208-5214 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×7
  • Duplicated block (19 lines × 2) crates/libs/bindgen/src/types/class.rs:40 — crates/libs/bindgen/src/types/class.rs:40-58 | crates/libs/bindgen/src/types/class.rs:79-97 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (19 lines × 2) crates/libs/metadata/src/merge/mod.rs:344 — crates/libs/metadata/src/merge/mod.rs:344-362 | crates/libs/metadata/src/merge/remap.rs:214-232 — before extracting anything, compare `crates/libs/metadata/src/merge/mod.rs` and `crates/libs/metadata/src/merge/remap.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (19 lines × 2) crates/libs/windows/src/Windows/AI/Agents/Mcp/mod.rs:247 — crates/libs/windows/src/Windows/AI/Agents/Mcp/mod.rs:247-265 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:194-212 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (19 lines × 2) REDACTED:2409 — REDACTED:2409-2427 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:154-172 — `REDACTED` and `crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (19 lines × 2) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7656 — crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7656-7674 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2566-2584 — `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` and `crates/libs/windows/src/Windows/Win32/dcomp/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (19 lines × 2) crates/libs/windows/src/Windows/Win32/corewindow/mod.rs:26 — crates/libs/windows/src/Windows/Win32/corewindow/mod.rs:26-44 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:1365-1383 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (19 lines × 2) crates/libs/windows/src/Windows/Win32/evr/mod.rs:377 — crates/libs/windows/src/Windows/Win32/evr/mod.rs:377-395 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1858-1876 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×7
  • Duplicated block (14 lines × 2) crates/libs/bindgen/src/filter.rs:656 — crates/libs/bindgen/src/filter.rs:656-669 | crates/libs/bindgen/src/implements.rs:33-46 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (14 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1425 — crates/libs/reactor/src/core/pump/planner/view.rs:1425-1438 | crates/libs/reactor/src/core/pump/planner/view.rs:1522-1535 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2231 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2231-2244 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:7225-7238 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) crates/libs/windows/src/Windows/Win32/certenc/mod.rs:885 — crates/libs/windows/src/Windows/Win32/certenc/mod.rs:885-898 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1097-1110 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12060 — crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12060-12073 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:17339-17352 — `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 26 separate duplicated blocks between them, totalling at least 284 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (14 lines × 2) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48266 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48266-48279 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:49268-49281 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1635 — crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1635-1648 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2090-2103 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×7
  • Duplicated block (10 lines × 4) crates/libs/future/src/bindings.rs:780 — crates/libs/future/src/bindings.rs:780-789 | crates/libs/future/src/bindings.rs:999-1008 | crates/libs/future/src/bindings.rs:1447-1456 | crates/libs/future/src/bindings.rs:1721-1730 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 4) crates/libs/future/src/bindings.rs:791 — crates/libs/future/src/bindings.rs:791-800 | crates/libs/future/src/bindings.rs:1010-1019 | crates/libs/future/src/bindings.rs:1458-1467 | crates/libs/future/src/bindings.rs:1732-1741 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 4) crates/libs/future/src/bindings.rs:802 — crates/libs/future/src/bindings.rs:802-811 | crates/libs/future/src/bindings.rs:1021-1030 | crates/libs/future/src/bindings.rs:1469-1478 | crates/libs/future/src/bindings.rs:1743-1752 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 4) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:208 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:208-217 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3411-3420 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5474-5483 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:2056-2065 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenroll/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 155 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (10 lines × 4) crates/libs/collections/src/bindings.rs:2894 — crates/libs/collections/src/bindings.rs:2894-2903 | crates/libs/collections/src/bindings.rs:3013-3022 | crates/libs/future/src/bindings.rs:120-129 | crates/libs/future/src/bindings.rs:487-496 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/future/src/bindings.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 4) crates/libs/composition/src/bindings.rs:2550 — crates/libs/composition/src/bindings.rs:2550-2559 | crates/libs/composition/src/bindings.rs:2667-2676 | crates/libs/composition/src/bindings_lifted.rs:2363-2372 | crates/libs/composition/src/bindings_lifted.rs:2480-2489 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 4) crates/libs/reactor/src/native/winui/bindings.rs:13205 — crates/libs/reactor/src/native/winui/bindings.rs:13205-13214 | crates/libs/reactor/src/native/winui/bindings.rs:14916-14925 | crates/libs/reactor/src/native/winui/bindings.rs:15081-15090 | crates/libs/webview/src/bindings.rs:1780-1789 — before extracting anything, compare `crates/libs/reactor/src/native/winui/bindings.rs` and `crates/libs/webview/src/bindings.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 5) · ×7
  • Duplicated block (8 lines × 5) crates/libs/collections/src/bindings.rs:739 — crates/libs/collections/src/bindings.rs:739-746 | crates/libs/collections/src/bindings.rs:1229-1236 | crates/libs/collections/src/bindings.rs:2191-2198 | crates/libs/collections/src/bindings.rs:2534-2541 | crates/libs/collections/src/bindings.rs:2730-2737 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 5) crates/libs/reactor/src/core/pump/planner/view.rs:1387 — crates/libs/reactor/src/core/pump/planner/view.rs:1387-1394 | crates/libs/reactor/src/core/pump/planner/view.rs:1429-1436 | crates/libs/reactor/src/core/pump/planner/view.rs:1484-1491 | crates/libs/reactor/src/core/pump/planner/view.rs:1526-1533 | crates/libs/reactor/src/core/pump/planner/view.rs:1592-1599 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 5) crates/libs/reactor/src/native/winui/bindings.rs:22374 — crates/libs/reactor/src/native/winui/bindings.rs:22374-22381 | crates/libs/reactor/src/native/winui/bindings.rs:24558-24565 | crates/libs/reactor/src/native/winui/bindings.rs:25523-25530 | crates/libs/reactor/src/native/winui/bindings.rs:25791-25798 | crates/libs/reactor/src/native/winui/bindings.rs:25977-25984 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 5) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1332 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1332-1339 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1641-1648 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3399-3406 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4040-4047 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10856-10863 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenroll/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 155 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 5) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3201 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3201-3209 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3349-3356 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3476-3483 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3525-3532 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3574-3581 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 5) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20136 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20136-20143 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22671-22678 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25659-25666 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28709-28716 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31788-31795 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 5) crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:3651 — crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:3651-3658 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:4209-4216 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:4797-4804 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:5429-5436 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:6124-6131 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 10) · ×7
  • Duplicated block (5 lines × 10) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1417 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1417-1421 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:692-696 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:873-877 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:25-29 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:138-142 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:344-348 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1003-1007 | crates/libs/windows/src/Windows/Storage/mod.rs:303-307 | crates/libs/windows/src/Windows/Storage/mod.rs:472-476 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:207-211 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Security/Credentials/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 10) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:591 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:591-595 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:704-708 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:864-868 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:933-937 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1060-1064 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1123-1127 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1192-1196 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1255-1259 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1312-1316 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1643-1647 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 10) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:606 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:606-610 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:719-723 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:879-883 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:948-952 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1075-1079 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1138-1142 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1207-1211 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1270-1274 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1327-1331 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1658-1662 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 10) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2130 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2130-2134 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2536-2540 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2779-2783 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3880-3884 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4005-4009 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4201-4205 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4385-4389 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4689-4693 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4796-4800 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4973-4977 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 10) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2137 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2137-2141 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2543-2547 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2786-2790 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3887-3891 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4012-4016 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4208-4212 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4392-4396 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4696-4700 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4803-4807 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4980-4984 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 10) crates/libs/windows/src/Windows/UI/Core/mod.rs:39 — crates/libs/windows/src/Windows/UI/Core/mod.rs:39-43 | crates/libs/windows/src/Windows/UI/Core/mod.rs:96-100 | crates/libs/windows/src/Windows/UI/Core/mod.rs:163-167 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4897-4901 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4931-4935 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4979-4983 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5081-5085 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5142-5146 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5176-5180 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5210-5214 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 10) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:384 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:384-388 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1194-1198 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:186-190 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:452-456 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1836-1840 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3621-3625 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3725-3729 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:232-236 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:344-348 | crates/libs/windows/src/Windows/Web/Http/mod.rs:509-513 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs` and `crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D1 · Cyclomatic Complexity · tool_reactor · ×6
  • tool_reactor::generate_winui::generate_event_arm (cyclomatic 48) crates/tools/reactor/src/generate_winui.rs:1022 — tool_reactor::generate_winui::generate_event_arm has cyclomatic complexity 48 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • tool_reactor::generate::generate_element (cyclomatic 36) crates/tools/reactor/src/generate.rs:1363 — tool_reactor::generate::generate_element has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • tool_reactor::generate_winui::generate_set_property (cyclomatic 27) crates/tools/reactor/src/generate_winui.rs:1819 — tool_reactor::generate_winui::generate_set_property has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • tool_reactor::generate_winui::generate_control_bindings_filter (cyclomatic 22) crates/tools/reactor/src/generate_winui.rs:12 — tool_reactor::generate_winui::generate_control_bindings_filter has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • tool_reactor::generate::generate_property_values (cyclomatic 22) crates/tools/reactor/src/generate.rs:1070 — tool_reactor::generate::generate_property_values has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • tool_reactor::generate_surface::generate (cyclomatic 19) crates/tools/reactor/src/generate_surface.rs:10 — tool_reactor::generate_surface::generate has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: tool_reactor::generate_surface::direct_property_values (cyclomatic 20) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
D4 · Code Duplication · Members sharing a duplicated core (15 members, 50+ identical tokens) · ×6
  • Members sharing a duplicated core (15 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:502 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:502-508 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1192-1198 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1897-1903 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2012-2018 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2186-2192 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2301-2307 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2416-2422 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2531-2537 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2646-2652 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2761-2767 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2904-2910 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3009-3015 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3124-3130 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3239-3245 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3354-3360 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
  • Members sharing a duplicated core (15 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1904 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1904-1910 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2019-2025 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2193-2199 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2308-2314 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2423-2429 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2538-2544 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2653-2659 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2768-2774 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2911-2917 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3016-3022 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3131-3137 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3246-3252 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3361-3367 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:53-59 | crates/libs/windows/src/Windows/Media/mod.rs:80-86 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
  • Members sharing a duplicated core (15 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1522 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1522-1528 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1654-1660 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1717-1723 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4618-4624 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4853-4859 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4937-4943 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6906-6912 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8200-8206 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:163-169 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:474-480 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:593-599 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2987-2993 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3143-3149 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3218-3224 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5180-5186 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
  • Members sharing a duplicated core (15 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:231 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:231-237 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:486-492 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:813-819 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1331-1337 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2207-2213 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2517-2523 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2801-2807 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3092-3098 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3532-3538 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3779-3785 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4040-4046 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4397-4403 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4640-4646 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5167-5173 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5466-5472 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
  • Members sharing a duplicated core (15 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:238 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:238-244 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:493-499 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:820-826 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1338-1344 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2214-2220 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2524-2530 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2808-2814 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3099-3105 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3539-3545 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3786-3792 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4047-4053 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4404-4410 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4647-4653 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5174-5180 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5473-5479 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
  • Members sharing a duplicated core (15 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:36 — crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:36-46 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:32-42 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:366-376 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:628-638 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:783-793 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:982-992 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1262-1272 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1619-1629 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1819-1829 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4535-4545 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4818-4828 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5098-5108 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5436-5446 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5679-5689 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5901-5911 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
D4 · Code Duplication · Members sharing a duplicated core (11 members, 50+ identical tokens) · ×6
  • Members sharing a duplicated core (11 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:368 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:368-373 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1178-1183 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:170-175 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:436-441 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1820-1825 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3605-3610 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3709-3714 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:216-221 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:328-333 | crates/libs/windows/src/Windows/Web/Http/mod.rs:493-498 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:1226-1231 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
  • Members sharing a duplicated core (11 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1312 — crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1312-1318 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1966-1972 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3460-3466 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:197-203 | crates/libs/windows/src/Windows/Storage/Compression/mod.rs:73-79 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:930-936 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:613-619 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2231-2237 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2500-2506 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2619-2625 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2875-2881 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
  • Members sharing a duplicated core (11 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:597 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:597-603 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:710-716 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:870-876 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:939-945 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1066-1072 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1129-1135 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1198-1204 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1261-1267 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1318-1324 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1649-1655 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:486-492 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
  • Members sharing a duplicated core (11 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Audio/mod.rs:50 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:50-56 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:163-169 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:457-463 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:584-590 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:784-790 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:879-885 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2204-2210 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3117-3123 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3296-3302 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3798-3804 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4572-4578 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
  • Members sharing a duplicated core (11 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Audio/mod.rs:61 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:61-67 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:174-180 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:468-474 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:595-601 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:795-801 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:890-896 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2215-2221 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3128-3134 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3307-3313 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3809-3815 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4583-4589 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
  • Members sharing a duplicated core (11 members, 50+ identical tokens) crates/libs/windows/src/Windows/Media/Audio/mod.rs:76 — crates/libs/windows/src/Windows/Media/Audio/mod.rs:76-82 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:189-195 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:483-489 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:610-616 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:810-816 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:905-911 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2230-2236 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3143-3149 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3322-3328 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3824-3830 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4598-4604 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×6
  • Duplicated block (10 lines × 3) crates/libs/bindgen/src/types/method.rs:485 — crates/libs/bindgen/src/types/method.rs:485-494 | crates/libs/bindgen/src/types/method.rs:512-521 | crates/libs/bindgen/src/types/method.rs:839-848 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 3) crates/libs/reactor/src/core/pump/planner/view.rs:1901 — crates/libs/reactor/src/core/pump/planner/view.rs:1901-1910 | crates/libs/reactor/src/core/pump/planner/view.rs:1946-1955 | crates/libs/reactor/src/core/pump/planner/view.rs:2105-2114 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 3) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4686 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4686-4695 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4896-4905 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5275-5284 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 3) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1541 — crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1541-1550 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9431-9440 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9615-9624 — `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` and `crates/libs/windows/src/Windows/Win32/dwrite/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 77 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (10 lines × 3) crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:402 — crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:402-411 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:623-632 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:744-753 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 3) crates/libs/composition/src/bindings.rs:3005 — crates/libs/composition/src/bindings.rs:3005-3014 | crates/libs/composition/src/bindings_lifted.rs:2818-2827 | crates/libs/webview/src/bindings.rs:1957-1966 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 15) · ×6
  • Duplicated block (5 lines × 15) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:504 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:504-508 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1194-1198 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1899-1903 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2014-2018 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2188-2192 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2303-2307 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2418-2422 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2533-2537 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2648-2652 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2763-2767 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2906-2910 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3011-3015 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3126-3130 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3241-3245 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3356-3360 — all 15 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 15) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1906 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1906-1910 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2021-2025 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2195-2199 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2310-2314 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2425-2429 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2540-2544 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2655-2659 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2770-2774 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2913-2917 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3018-3022 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3133-3137 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3248-3252 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3363-3367 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:55-59 | crates/libs/windows/src/Windows/Media/mod.rs:82-86 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 15) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1524 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1524-1528 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1656-1660 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1719-1723 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4620-4624 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4855-4859 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4939-4943 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6908-6912 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8202-8206 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:165-169 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:476-480 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:595-599 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2989-2993 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3145-3149 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3220-3224 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5182-5186 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 15) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:233 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:233-237 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:488-492 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:815-819 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1333-1337 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2209-2213 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2519-2523 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2803-2807 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3094-3098 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3534-3538 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3781-3785 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4042-4046 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4399-4403 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4642-4646 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5169-5173 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5468-5472 — all 15 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 15) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:240 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:240-244 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:495-499 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:822-826 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1340-1344 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2216-2220 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2526-2530 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2810-2814 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3101-3105 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3541-3545 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3788-3792 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4049-4053 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4406-4410 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4649-4653 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5176-5180 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5475-5479 — all 15 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 15) crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:38 — crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:38-42 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:34-38 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:368-372 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:630-634 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:785-789 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:984-988 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1264-1268 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1621-1625 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1821-1825 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4537-4541 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4820-4824 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5100-5104 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5438-5442 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5681-5685 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5903-5907 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sensors/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 15) · ×6
  • Duplicated block (6 lines × 15) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1662 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1662-1667 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4825-4830 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1414-1419 | crates/libs/windows/src/Windows/Media/AppRecording/mod.rs:170-175 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:563-568 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2351-2356 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2566-2571 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:989-994 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:1020-1025 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:1069-1074 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:958-963 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1432-1437 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:891-896 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:172-177 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3151-3156 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 15) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1452 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1452-1457 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1131-1136 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1179-1184 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:321-326 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1690-1695 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3229-3234 | crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs:396-401 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:2895-2900 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1912-1917 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1996-2001 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:905-910 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:952-957 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:424-429 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:1254-1259 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1077-1082 — `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 15) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:139 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:139-144 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:155-160 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1287-1292 | crates/libs/windows/src/Windows/Management/mod.rs:222-227 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1933-1938 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:94-99 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:735-740 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1302-1307 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6024-6029 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6116-6121 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:1058-1063 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:803-808 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:578-583 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1015-1020 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:2364-2369 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs` and `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 15) crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:347 — crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:347-352 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:622-627 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1617-1622 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:2468-2473 | crates/libs/windows/src/Windows/Media/Core/mod.rs:916-921 | crates/libs/windows/src/Windows/Media/Core/mod.rs:1156-1161 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7358-7363 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1142-1147 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1187-1192 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3562-3567 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3919-3924 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4757-4762 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:891-896 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4171-4176 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1290-1295 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 15) crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1172 — crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1172-1177 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:990-995 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:6914-6919 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:81-86 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:925-930 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:1102-1107 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:1327-1332 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:1570-1575 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:67-72 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1419-1424 | crates/libs/windows/src/Windows/Management/mod.rs:89-94 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3227-3232 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3305-3310 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4751-4756 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:265-270 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs` and `crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 15) crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1526 — crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1526-1531 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:657-662 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:840-845 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:19-24 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3632-3637 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3763-3768 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1093-1098 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2570-2575 | crates/libs/windows/src/Windows/Perception/People/mod.rs:99-104 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2429-2434 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1112-1117 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1690-1695 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2147-2152 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:123-128 | crates/libs/windows/src/Windows/Web/UI/mod.rs:10-15 — `crates/libs/windows/src/Windows/Graphics/Printing/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D5 · Coupling · Off the main sequence · ×6
  • Off the main sequence: windows-metadata — windows-metadata: abstractness 0.06, instability 0.00, distance 0.94 — zone of pain — concrete and depended on by 8 project(s), so it's rigid to change.
  • Off the main sequence: helpers — helpers: abstractness 0.00, instability 0.11, distance 0.89 — zone of pain — concrete and depended on by 8 project(s), so it's rigid to change.
  • Off the main sequence: windows-window — windows-window: abstractness 0.00, instability 0.17, distance 0.83 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
  • Off the main sequence: windows-numerics — windows-numerics: abstractness 0.00, instability 0.20, distance 0.80 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
  • Off the main sequence: windows-time — windows-time: abstractness 0.00, instability 0.20, distance 0.80 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
  • Off the main sequence: windows-rdl — windows-rdl: abstractness 0.03, instability 0.22, distance 0.75 — zone of pain — concrete and depended on by 7 project(s), so it's rigid to change.
D1 · Cyclomatic Complexity · Type · ×5
  • Type::combine_closure (cyclomatic 47) crates/libs/bindgen/src/type_closure.rs:131 — Type::combine_closure has cyclomatic complexity 47 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
  • Type::from_metadata_type (cyclomatic 31) crates/libs/bindgen/src/types/mod.rs:352 — Type::from_metadata_type has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: Type::write_name (cyclomatic 48) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • Type::remap (cyclomatic 28) crates/libs/bindgen/src/types/mod.rs:248 — Type::remap has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: Type::write_name (cyclomatic 48) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • Type::combine (cyclomatic 26) crates/libs/bindgen/src/types/mod.rs:1164 — Type::combine has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: Type::write_name (cyclomatic 48) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • Type::combine_sys (cyclomatic 18) crates/libs/bindgen/src/types/mod.rs:113 — Type::combine_sys has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file's highest cyclomatic complexity: Type::write_name (cyclomatic 48) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
D2 · Cognitive Complexity · WinUiRuntime · ×5
  • WinUiRuntime::apply_one (cognitive 246) crates/libs/reactor/src/native/winui/mod.rs:1713 — WinUiRuntime::apply_one has cognitive complexity 246 (threshold 15). Drivers by points: if/else 79 (161 pts), match/switch 32 (68 pts), boolean chains 11, loops 3 (6 pts) (nesting depth added 121). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • WinUiRuntime::synchronize_slot_children (cognitive 27) crates/libs/reactor/src/native/winui/mod.rs:3166 — WinUiRuntime::synchronize_slot_children has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • WinUiRuntime::apply_window_visuals (cognitive 20) crates/libs/reactor/src/native/winui/mod.rs:1109 — WinUiRuntime::apply_window_visuals has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • WinUiRuntime::insert_child (cognitive 19) crates/libs/reactor/src/native/winui/mod.rs:2969 — WinUiRuntime::insert_child has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (19 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • WinUiRuntime::move_child (cognitive 16) crates/libs/reactor/src/native/winui/mod.rs:3405 — WinUiRuntime::move_child has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Duplicated block (9 lines × 6) · ×5
  • Duplicated block (9 lines × 6) crates/libs/collections/src/bindings.rs:656 — crates/libs/collections/src/bindings.rs:656-664 | crates/libs/collections/src/bindings.rs:1149-1157 | crates/libs/collections/src/bindings.rs:1409-1417 | crates/libs/collections/src/bindings.rs:1682-1690 | crates/libs/collections/src/bindings.rs:2111-2119 | crates/libs/collections/src/bindings.rs:2661-2669 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 6) crates/libs/reactor/src/native/winui/bindings.rs:11262 — crates/libs/reactor/src/native/winui/bindings.rs:11262-11270 | crates/libs/reactor/src/native/winui/bindings.rs:12005-12013 | crates/libs/reactor/src/native/winui/bindings.rs:12064-12072 | crates/libs/reactor/src/native/winui/bindings.rs:12136-12144 | crates/libs/reactor/src/native/winui/bindings.rs:12355-12363 | crates/libs/reactor/src/native/winui/bindings.rs:16396-16404 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3073 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3073-3081 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3184-3192 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3315-3323 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3397-3405 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3607-3615 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3737-3745 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 6) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4451 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4451-4459 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4464-4472 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1496-1504 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1706-1714 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1111-1119 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1920-1928 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 6) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2639 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2639-2647 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3415-3423 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4092-4100 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4488-4496 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5478-5486 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10872-10880 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×5
  • Duplicated block (7 lines × 3) crates/libs/collections/src/bindings.rs:294 — crates/libs/collections/src/bindings.rs:294-300 | crates/libs/collections/src/bindings.rs:2346-2352 | crates/libs/collections/src/bindings.rs:2780-2786 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 3) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8303 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8303-8309 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11806-11812 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:17085-17091 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 3) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3723 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3723-3729 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4402-4408 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6983-6989 — `crates/libs/windows/src/Windows/Win32/d2d/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 54 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 3) crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11111 — crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11111-11117 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:16247-16253 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:16535-16541 — `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 26 separate duplicated blocks between them, totalling at least 284 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 3) crates/libs/reactor/src/app/mod.rs:380 — crates/libs/reactor/src/app/mod.rs:380-386 | crates/libs/reactor/src/app/mod.rs:396-402 | crates/libs/reactor/src/app/mod.rs:411-417 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (6 lines × 14) · ×5
  • Duplicated block (6 lines × 14) crates/libs/collections/src/bindings.rs:80 — crates/libs/collections/src/bindings.rs:80-85 | crates/libs/collections/src/bindings.rs:784-789 | crates/libs/collections/src/bindings.rs:2213-2218 | crates/libs/composition/src/bindings_lifted.rs:2325-2330 | crates/libs/core/src/imp/bindings.rs:229-234 | crates/libs/future/src/bindings.rs:853-858 | crates/libs/future/src/bindings.rs:1101-1106 | crates/libs/future/src/bindings.rs:1137-1142 | crates/libs/future/src/bindings.rs:1535-1540 | crates/libs/future/src/bindings.rs:1838-1843 | crates/libs/future/src/bindings.rs:1879-1884 | crates/libs/reactor/src/native/winui/bindings.rs:9153-9158 | crates/libs/reactor/src/native/winui/bindings.rs:21876-21881 | crates/libs/reference/src/bindings.rs:291-296 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 14) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:666 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:666-671 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:85-90 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:237-242 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:258-263 | crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs:202-207 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:173-178 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:636-641 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:576-581 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:743-748 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:944-949 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:831-836 | crates/libs/windows/src/Windows/UI/UIAutomation/mod.rs:46-51 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3067-3072 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3305-3310 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 14) crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:348 — crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:348-353 | crates/libs/windows/src/Windows/Management/Update/mod.rs:896-901 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2160-2165 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2792-2797 | crates/libs/windows/src/Windows/Management/Update/mod.rs:3246-3251 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:78-83 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:1882-1887 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:507-512 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:614-619 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3338-3343 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3392-3397 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3458-3463 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3542-3547 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3608-3613 — before extracting anything, compare `crates/libs/windows/src/Windows/Management/Update/mod.rs` and `crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 14) crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2258 — crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2258-2263 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2957-2962 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3109-3114 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:562-567 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:731-736 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1267-1272 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1088-1093 | crates/libs/windows/src/Windows/Media/Import/mod.rs:388-393 | crates/libs/windows/src/Windows/Media/Import/mod.rs:484-489 | crates/libs/windows/src/Windows/Media/Import/mod.rs:699-704 | crates/libs/windows/src/Windows/Media/Import/mod.rs:991-996 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1784-1789 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2054-2059 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2095-2100 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` and `crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 14) crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:326 — crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:326-331 | REDACTED:3181-3186 | REDACTED:3281-3286 | REDACTED:3381-3386 | REDACTED:3481-3486 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:778-783 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:998-1003 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1216-1221 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:1220-1225 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:511-516 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:617-622 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1790-1795 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:467-472 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:762-767 — `crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenc/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 47 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 18) · ×5
  • Duplicated block (6 lines × 18) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1109 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1109-1114 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1159-1164 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:996-1001 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1446-1451 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1470-1475 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3394-3399 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7522-7527 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:888-893 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1298-1303 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2399-2404 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1412-1417 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2699-2704 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:505-510 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:481-486 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:1181-1186 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2315-2320 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2419-2424 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3354-3359 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 18) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1115 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1115-1120 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:434-439 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1165-1170 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:1002-1007 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1452-1457 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1476-1481 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3400-3405 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7528-7533 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:894-899 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1307-1312 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2408-2413 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1418-1423 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2705-2710 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:499-504 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:487-492 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:1187-1192 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2437-2442 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3363-3368 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Capture/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 18) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1911 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1911-1916 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:626-631 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:1042-1047 | crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs:28-33 | crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs:59-64 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1554-1559 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1712-1717 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2399-2404 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2513-2518 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2624-2629 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2911-2916 | crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs:335-340 | crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs:6-11 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:408-413 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1475-1480 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4476-4481 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2780-2785 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12394-12399 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 18) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:90 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:90-95 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs:91-96 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:546-551 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:775-780 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:969-974 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1295-1300 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3665-3670 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7675-7680 | crates/libs/windows/src/Windows/Media/Control/mod.rs:319-324 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4739-4744 | crates/libs/windows/src/Windows/Media/Import/mod.rs:875-880 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1319-1324 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:1083-1088 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1748-1753 | crates/libs/windows/src/Windows/Media/mod.rs:2414-2419 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:279-284 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:855-860 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1063-1068 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 18) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:583 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:583-588 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4785-4790 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4916-4921 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2204-2209 | crates/libs/windows/src/Windows/Devices/Gpio/mod.rs:116-121 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:810-815 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:1739-1744 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7246-7251 | crates/libs/windows/src/Windows/Media/mod.rs:67-72 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:12-17 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:698-703 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2306-2311 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2687-2692 | crates/libs/windows/src/Windows/UI/Text/mod.rs:4606-4611 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2349-2354 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10916-10921 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14783-14788 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15901-15906 — before extracting anything, compare `crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Members sharing a duplicated core (17 members, 50+ identical tokens) · ×4
  • Members sharing a duplicated core (17 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:764 — crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:764-770 | crates/libs/windows/src/Windows/Media/Core/mod.rs:110-116 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2215-2221 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6065-6071 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7515-7521 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:389-395 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:503-509 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:611-617 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:913-919 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1237-1243 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1480-1486 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1831-1837 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1995-2001 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2272-2278 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2457-2463 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2669-2675 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2824-2830 — These 17 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 17 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 17 times.
  • Members sharing a duplicated core (17 members, 50+ identical tokens) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1474 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1474-1480 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:102-108 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1031-1037 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1311-1317 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4591-4597 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4861-4867 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5147-5153 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5485-5491 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6326-6332 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1365-1371 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1537-1543 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2567-2573 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2795-2801 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2927-2933 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3005-3011 | crates/libs/windows/src/Windows/UI/Core/mod.rs:30-36 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4953-4959 — These 17 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 17 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 17 times.
  • Members sharing a duplicated core (17 members, 50+ identical tokens) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:606 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:606-611 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1024-1029 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1117-1122 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1210-1215 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1303-1308 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1403-1408 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1552-1557 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1660-1665 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1757-1762 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1850-1855 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1943-1948 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2036-2041 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2129-2134 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2265-2270 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2350-2355 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2443-2448 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2536-2541 — These 17 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 17 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 17 times.
  • Members sharing a duplicated core (17 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certcli/mod.rs:448 — crates/libs/windows/src/Windows/Win32/certcli/mod.rs:448-543 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:631-713 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10264-10348 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:123-207 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15620-16424 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17334-18218 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19249-20260 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:21784-23208 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:24772-26237 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:27822-29307 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:30901-32393 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37556-37983 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38530-39019 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40192-41209 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42437-43503 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44748-45834 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2781-2824 — These 17 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 17 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 17 times.
D4 · Code Duplication · Members sharing a duplicated core (13 members, 50+ identical tokens) · ×4
  • Members sharing a duplicated core (13 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/Actions/mod.rs:629 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:629-635 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:710-716 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:773-779 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:865-871 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:927-933 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:977-983 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1027-1033 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1697-1703 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1747-1753 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1902-1908 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2046-2052 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2108-2114 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2165-2171 — These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
  • Members sharing a duplicated core (13 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/Actions/mod.rs:636 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:636-642 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:717-723 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:780-786 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:872-878 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:934-940 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:984-990 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1034-1040 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1704-1710 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1754-1760 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1909-1915 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2053-2059 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2115-2121 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2172-2178 — These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
  • Members sharing a duplicated core (13 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1911 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1911-1917 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2026-2032 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2200-2206 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2315-2321 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2430-2436 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2545-2551 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2660-2666 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2775-2781 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2918-2924 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3023-3029 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3138-3144 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3253-3259 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3368-3374 — These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
  • Members sharing a duplicated core (13 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1918 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1918-1924 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2033-2039 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2207-2213 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2322-2328 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2437-2443 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2552-2558 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2667-2673 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2782-2788 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2925-2931 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3030-3036 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3145-3151 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3260-3266 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:3375-3381 — These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×4
  • Duplicated block (15 lines × 2) crates/libs/rdl/src/reader/mod.rs:892 — crates/libs/rdl/src/reader/mod.rs:892-906 | crates/libs/rdl/src/reader/mod.rs:919-933 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:1914 — crates/libs/reactor/src/core/pump/planner/view.rs:1914-1928 | crates/libs/reactor/src/core/pump/planner/view.rs:1959-1973 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4685 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4685-4699 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5274-5288 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13102 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13102-13116 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13351-13365 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×4
  • Duplicated block (11 lines × 3) crates/libs/rdl/src/reader/mod.rs:847 — crates/libs/rdl/src/reader/mod.rs:847-857 | crates/libs/rdl/src/reader/mod.rs:896-906 | crates/libs/rdl/src/reader/mod.rs:923-933 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 3) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13017 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13017-13027 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13267-13277 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13640-13650 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 3) crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18262 — crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18262-18272 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19284-19294 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:20265-20275 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 3) crates/libs/canvas/src/bindings.rs:411 — crates/libs/canvas/src/bindings.rs:411-421 | crates/libs/pickers/src/bindings.rs:391-401 | crates/libs/reactor/src/native/winui/bindings.rs:20631-20641 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
D4 · Code Duplication · Duplicated block (9 lines × 5) · ×4
  • Duplicated block (9 lines × 5) crates/libs/reactor/src/native/winui/bindings.rs:5583 — crates/libs/reactor/src/native/winui/bindings.rs:5583-5591 | crates/libs/reactor/src/native/winui/bindings.rs:12535-12543 | crates/libs/reactor/src/native/winui/bindings.rs:13091-13099 | crates/libs/reactor/src/native/winui/bindings.rs:16300-16308 | crates/libs/reactor/src/native/winui/bindings.rs:16406-16414 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 5) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:209 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:209-217 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:506-514 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:984-992 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1531-1539 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1754-1762 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 5) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:222 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:222-230 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:519-527 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:997-1005 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1544-1552 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1767-1775 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 5) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:760 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:760-768 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:773-781 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:786-794 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:799-807 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:877-885 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs` and `crates/libs/windows/src/Windows/Networking/Vpn/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 9) · ×4
  • Duplicated block (8 lines × 9) crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1020 — crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1020-1027 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:130-137 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:453-460 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:801-808 | crates/libs/windows/src/Windows/Win32/certpol/mod.rs:243-250 | crates/libs/windows/src/Windows/Win32/certpol/mod.rs:255-262 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:798-805 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:1753-1760 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1002-1009 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certcli/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 80 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 9) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1308 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1308-1315 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1617-1624 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1435-1442 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6908-6915 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8014-8021 | crates/libs/windows/src/Windows/Win32/control/mod.rs:69-76 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1170-1177 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:573-580 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:871-878 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/comadmin/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 91 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 9) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1109 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1109-1118 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1178-1187 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1365-1372 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1490-1499 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1790-1799 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1862-1869 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1942-1951 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2023-2032 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2093-2100 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 9) crates/libs/canvas/src/bindings.rs:2244 — crates/libs/canvas/src/bindings.rs:2244-2251 | crates/libs/canvas/src/bindings.rs:2255-2262 | crates/libs/canvas/src/bindings.rs:2266-2273 | crates/libs/canvas/src/bindings.rs:2331-2338 | crates/libs/canvas/src/bindings.rs:2339-2346 | crates/libs/canvas/src/bindings.rs:2929-2936 | crates/libs/pickers/src/bindings.rs:89-96 | crates/libs/pickers/src/bindings.rs:97-104 | crates/libs/pickers/src/bindings.rs:197-204 — there are 9 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (8 lines × 7) · ×4
  • Duplicated block (8 lines × 7) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6157 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6157-6164 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6213-6220 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6269-6276 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6325-6332 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6381-6388 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6437-6444 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6493-6500 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16141 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16141-16148 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17855-17862 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19770-19777 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22305-22312 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25293-25300 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28343-28350 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31422-31429 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16153 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16153-16160 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17867-17874 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19782-19789 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22317-22324 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25305-25312 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28355-28362 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31434-31441 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 7) crates/libs/reactor/src/element.rs:2628 — crates/libs/reactor/src/element.rs:2628-2635 | crates/libs/reactor/src/element.rs:2645-2652 | crates/libs/reactor/src/element.rs:2662-2669 | crates/libs/reactor/src/element.rs:2679-2686 | crates/libs/reactor/src/element.rs:2696-2703 | crates/libs/reactor/src/element.rs:2713-2720 | crates/libs/reactor/src/element.rs:2730-2737 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8 lines × 6) · ×4
  • Duplicated block (8 lines × 6) crates/libs/reactor/src/native/winui/bindings.rs:487 — crates/libs/reactor/src/native/winui/bindings.rs:487-494 | crates/libs/reactor/src/native/winui/bindings.rs:1275-1282 | crates/libs/reactor/src/native/winui/bindings.rs:1944-1951 | crates/libs/reactor/src/native/winui/bindings.rs:24821-24828 | crates/libs/reactor/src/native/winui/bindings.rs:26514-26521 | crates/libs/reactor/src/native/winui/bindings.rs:29103-29110 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 6) crates/libs/reactor/src/native/winui/bindings.rs:2306 — crates/libs/reactor/src/native/winui/bindings.rs:2306-2313 | crates/libs/reactor/src/native/winui/bindings.rs:22456-22463 | crates/libs/reactor/src/native/winui/bindings.rs:23670-23677 | crates/libs/reactor/src/native/winui/bindings.rs:25063-25070 | crates/libs/reactor/src/native/winui/bindings.rs:28765-28772 | crates/libs/reactor/src/native/winui/bindings.rs:29535-29542 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 6) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4979 — crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4979-4986 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7876-7883 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8117-8124 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9490-9497 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10740-10747 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3153-3160 — `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` and `crates/libs/windows/src/Windows/Win32/exdisp/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 111 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 6) crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4979 — crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4979-4986 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7876-7883 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8117-8124 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10740-10747 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3153-3160 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8764-8771 — `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` and `crates/libs/windows/src/Windows/Win32/exdisp/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 111 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×4
  • Duplicated block (7 lines × 4) crates/libs/reactor/src/core/pump/planner/view.rs:1354 — crates/libs/reactor/src/core/pump/planner/view.rs:1354-1360 | crates/libs/reactor/src/core/pump/planner/view.rs:1411-1417 | crates/libs/reactor/src/core/pump/planner/view.rs:1452-1458 | crates/libs/reactor/src/core/pump/planner/view.rs:1508-1514 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 4) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2570 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2570-2576 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8811-8817 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8895-8901 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8979-8985 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 4) crates/libs/collections/src/bindings.rs:3002 — crates/libs/collections/src/bindings.rs:3002-3008 | crates/libs/future/src/bindings.rs:109-115 | crates/libs/future/src/bindings.rs:233-239 | crates/libs/future/src/bindings.rs:353-359 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/future/src/bindings.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 4) crates/libs/future/src/bindings.rs:17 — crates/libs/future/src/bindings.rs:17-23 | crates/libs/reactor/src/native/winui/bindings.rs:365-371 | crates/libs/reactor/src/native/winui/bindings.rs:2983-2989 | crates/libs/reactor/src/native/winui/bindings.rs:3149-3155 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (6 lines × 22) · ×4
  • Duplicated block (6 lines × 22) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5773 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5773-5778 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:57-62 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:107-112 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs:141-146 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1167-1172 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2382-2387 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2421-2426 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:25-30 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:106-111 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:168-173 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:1083-1088 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:355-360 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:423-428 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:700-705 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8003-8008 | crates/libs/windows/src/Windows/Media/Core/mod.rs:823-828 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4435-4440 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4679-4684 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5457-5462 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:937-942 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2866-2871 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:284-289 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 33 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 22) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:24 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:24-29 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:219-224 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:255-260 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:285-290 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:315-320 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:351-356 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:151-156 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:331-336 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:367-372 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:397-402 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:427-432 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:463-468 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2350-2355 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2378-2383 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2472-2477 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2530-2535 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2699-2704 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2779-2784 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2918-2923 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2948-2953 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1550-1555 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1584-1589 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 22) crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2548 — crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2548-2553 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2717-2722 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2797-2802 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2966-2971 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3067-3072 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:654-659 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:297-302 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2172-2177 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2478-2483 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:499-504 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:799-804 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1045-1050 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2520-2525 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2659-2664 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6211-6216 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2758-2763 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:232-237 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:872-877 | crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs:84-89 | crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs:174-179 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2812-2817 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:782-787 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` and `crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 22) crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:295 — crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:295-300 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:335-340 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:436-441 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:537-542 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:603-608 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:966-971 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:42-47 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1020-1025 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1072-1077 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1136-1141 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1169-1174 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1257-1262 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1524-1529 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:2858-2863 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3103-3108 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3386-3391 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3467-3472 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3556-3561 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3907-3912 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4390-4395 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4444-4449 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4508-4513 — before extracting anything, compare `crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Devices/mod.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D1 · Cyclomatic Complexity · WinUiRuntime · ×3
  • WinUiRuntime::apply_one (cyclomatic 182) crates/libs/reactor/src/native/winui/mod.rs:1713 — WinUiRuntime::apply_one has cyclomatic complexity 182 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • WinUiRuntime::synchronize_slot_children (cyclomatic 19) crates/libs/reactor/src/native/winui/mod.rs:3166 — WinUiRuntime::synchronize_slot_children has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: WinUiRuntime::set_key_accelerators (cyclomatic 27) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • WinUiRuntime::apply_window_visuals (cyclomatic 17) crates/libs/reactor/src/native/winui/mod.rs:1109 — WinUiRuntime::apply_window_visuals has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: WinUiRuntime::set_key_accelerators (cyclomatic 27) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · Encoder · ×3
  • Encoder::encode_interface (cyclomatic 45) crates/libs/rdl/src/reader/interface.rs:108 — Encoder::encode_interface has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Encoder::encode_path (cyclomatic 42) crates/libs/rdl/src/reader/mod.rs:1041 — Encoder::encode_path has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Encoder::encode_value (cyclomatic 23) crates/libs/rdl/src/reader/mod.rs:678 — Encoder::encode_value has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · CppMethod · ×3
  • CppMethod::new (cyclomatic 41) crates/libs/bindgen/src/types/cpp_method.rs:85 — CppMethod::new has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • CppMethod::write_args (cyclomatic 30) crates/libs/bindgen/src/types/cpp_method.rs:679 — CppMethod::write_args has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • CppMethod::write_params (cyclomatic 22) crates/libs/bindgen/src/types/cpp_method.rs:578 — CppMethod::write_params has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · windows_rdl · ×3
  • windows_rdl::emit::write_type (cyclomatic 38) crates/libs/rdl/src/emit.rs:31 — windows_rdl::emit::write_type has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • windows_rdl::formatter::format_seq (cyclomatic 37) crates/libs/rdl/src/formatter/mod.rs:12 — windows_rdl::formatter::format_seq has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • windows_rdl::writer::interface::write_members (cyclomatic 18) crates/libs/rdl/src/writer/interface.rs:51 — windows_rdl::writer::interface::write_members has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · Method · ×3
  • Method::write (cognitive 168) crates/libs/bindgen/src/types/method.rs:347 — Method::write has cognitive complexity 168 (threshold 15). Drivers by points: if/else 107 (148 pts), boolean chains 15, match/switch 4 (5 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Method::write_abi (cognitive 33) crates/libs/bindgen/src/types/method.rs:273 — Method::write_abi has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (32 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Method::write_upcall (cognitive 18) crates/libs/bindgen/src/types/method.rs:41 — Method::write_upcall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CppMethod · ×3
  • CppMethod::write_args (cognitive 73) crates/libs/bindgen/src/types/cpp_method.rs:679 — CppMethod::write_args has cognitive complexity 73 (threshold 15). Drivers by points: if/else 27 (66 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • CppMethod::new (cognitive 62) crates/libs/bindgen/src/types/cpp_method.rs:85 — CppMethod::new has cognitive complexity 62 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 11, loops 8 (10 pts), match/switch 3 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • CppMethod::write_params (cognitive 38) crates/libs/bindgen/src/types/cpp_method.rs:578 — CppMethod::write_params has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (32 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Members sharing a duplicated core (22 members, 50+ identical tokens) · ×3
  • Members sharing a duplicated core (22 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1128 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1128-1134 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1781-1787 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1840-1846 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2123-2129 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2935-2941 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:3031-3037 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1680-1686 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2560-2566 | crates/libs/windows/src/Windows/Media/Core/mod.rs:99-105 | crates/libs/windows/src/Windows/Media/Core/mod.rs:181-187 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2204-2210 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6176-6182 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7504-7510 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7637-7643 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:796-802 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:190-196 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:767-773 | crates/libs/windows/src/Windows/Storage/mod.rs:1633-1639 | crates/libs/windows/src/Windows/Storage/mod.rs:2173-2179 | crates/libs/windows/src/Windows/Storage/mod.rs:2814-2820 | crates/libs/windows/src/Windows/Storage/mod.rs:4498-4504 | crates/libs/windows/src/Windows/Storage/mod.rs:4930-4936 — These 22 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 22 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 22 times.
  • Members sharing a duplicated core (22 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1135 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1135-1141 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1788-1794 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1847-1853 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2130-2136 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1884-1890 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1075-1081 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:971-977 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1064-1070 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1157-1163 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1250-1256 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1343-1349 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1488-1494 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1614-1620 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1711-1717 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1797-1803 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1890-1896 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1990-1996 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2083-2089 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2286-2292 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2371-2377 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2464-2470 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2557-2563 — These 22 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 22 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 22 times.
  • Members sharing a duplicated core (22 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2385 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2385-2497 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2819-2897 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:657-681 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:190-313 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:284-409 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:452-525 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:680-772 | crates/libs/windows/src/Windows/Foundation/mod.rs:394-431 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1039-1144 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2925-2969 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1533-1599 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1117-1245 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:591-629 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1330-1368 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1128-1235 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:53-77 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2289-2313 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2491-2549 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2757-2962 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3253-3317 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3745-4285 | crates/libs/windows/src/Windows/Web/UI/mod.rs:444-1029 — These 22 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 22 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 22 times.
D4 · Code Duplication · Members sharing a duplicated core (16 members, 50+ identical tokens) · ×3
  • Members sharing a duplicated core (16 members, 50+ identical tokens) crates/libs/collections/src/bindings.rs:2083 — crates/libs/collections/src/bindings.rs:2083-2095 | crates/libs/collections/src/bindings.rs:2646-2658 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:389-394 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:579-584 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1199-1204 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:191-196 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:457-462 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1841-1846 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3626-3631 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3730-3735 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:237-242 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:95-100 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:58-63 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:349-354 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1593-1598 | crates/libs/windows/src/Windows/Web/Http/mod.rs:514-519 — These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times.
  • Members sharing a duplicated core (16 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1422 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1422-1428 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:697-703 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:878-884 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:735-741 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1081-1087 | crates/libs/windows/src/Windows/Data/Json/mod.rs:734-740 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:30-36 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:143-149 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:349-355 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1008-1014 | crates/libs/windows/src/Windows/Storage/mod.rs:308-314 | crates/libs/windows/src/Windows/Storage/mod.rs:477-483 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:212-218 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1210-1216 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3214-3220 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3393-3399 — These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times.
  • Members sharing a duplicated core (16 members, 50+ identical tokens) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:960 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:960-966 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1053-1059 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1146-1152 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1239-1245 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1332-1338 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1477-1483 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1603-1609 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1700-1706 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1786-1792 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1879-1885 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1979-1985 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2072-2078 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2275-2281 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2360-2366 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2453-2459 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2546-2552 — These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×3
  • Duplicated block (12 lines × 3) crates/libs/collections/src/bindings.rs:815 — crates/libs/collections/src/bindings.rs:815-826 | crates/libs/collections/src/bindings.rs:2243-2254 | crates/libs/collections/src/bindings.rs:2761-2772 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (12 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:5381 — crates/libs/reactor/src/native/winui/bindings.rs:5381-5392 | crates/libs/reactor/src/native/winui/bindings.rs:16510-16521 | crates/libs/reactor/src/native/winui/bindings.rs:18584-18595 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (12 lines × 3) crates/libs/webview/src/bindings.rs:899 — crates/libs/webview/src/bindings.rs:899-910 | crates/libs/webview/src/bindings.rs:1022-1033 | crates/libs/webview/src/bindings.rs:3668-3679 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (10 lines × 5) · ×3
  • Duplicated block (10 lines × 5) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5670 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5670-5679 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7260-7269 | crates/libs/windows/src/Windows/Win32/gameux/mod.rs:73-82 | crates/libs/windows/src/Windows/Win32/gameux/mod.rs:151-160 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1410-1419 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (10 lines × 5) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:474 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:474-483 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2381-2390 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5087-5096 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6799-6808 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14187-14196 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 5) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6284 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6284-6293 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6408-6417 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6494-6503 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6575-6584 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6656-6665 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9 lines × 14) · ×3
  • Duplicated block (9 lines × 14) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:209 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:209-217 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2836-2844 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4355-4363 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:457-465 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:685-693 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1072-1080 | crates/libs/windows/src/Windows/Foundation/mod.rs:1601-1609 | crates/libs/windows/src/Windows/Graphics/Effects/mod.rs:32-40 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:493-501 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:971-979 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1518-1526 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2125-2133 | crates/libs/windows/src/Windows/Storage/mod.rs:2660-2668 | crates/libs/windows/src/Windows/UI/Text/mod.rs:865-873 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 14) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4438 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4438-4446 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4593-4601 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4911-4919 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1339-1347 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:385-393 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:398-406 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:411-419 | crates/libs/windows/src/Windows/Storage/mod.rs:1773-1781 | crates/libs/windows/src/Windows/Storage/mod.rs:1825-1833 | crates/libs/windows/src/Windows/Storage/mod.rs:2246-2254 | crates/libs/windows/src/Windows/Storage/mod.rs:2272-2280 | crates/libs/windows/src/Windows/Storage/mod.rs:2608-2616 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:703-711 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1634-1642 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 14) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4438 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4438-4446 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4593-4601 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4911-4919 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:182-190 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:385-393 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:398-406 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:411-419 | crates/libs/windows/src/Windows/Storage/mod.rs:1773-1781 | crates/libs/windows/src/Windows/Storage/mod.rs:1825-1833 | crates/libs/windows/src/Windows/Storage/mod.rs:2246-2254 | crates/libs/windows/src/Windows/Storage/mod.rs:2272-2280 | crates/libs/windows/src/Windows/Storage/mod.rs:2608-2616 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:248-256 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1634-1642 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/Security/Credentials/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 7) · ×3
  • Duplicated block (9 lines × 7) crates/libs/reactor/src/native/winui/bindings.rs:20345 — crates/libs/reactor/src/native/winui/bindings.rs:20345-20353 | crates/libs/reactor/src/native/winui/bindings.rs:20377-20385 | crates/libs/reactor/src/native/winui/bindings.rs:20409-20417 | crates/libs/reactor/src/native/winui/bindings.rs:20441-20449 | crates/libs/reactor/src/native/winui/bindings.rs:20473-20481 | crates/libs/reactor/src/native/winui/bindings.rs:20505-20513 | crates/libs/reactor/src/native/winui/bindings.rs:20537-20545 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 7) REDACTED:2513 — REDACTED:2513-2521 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:218-226 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:8067-8075 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:20644-20652 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20136-20144 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2974-2982 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8096-8104 — `REDACTED` and `crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5699 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5699-5707 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6742-6750 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8288-8296 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9877-9885 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11478-11486 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13094-13102 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14739-14747 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (6 lines × 11) · ×3
  • Duplicated block (6 lines × 11) crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2912 — crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2912-2917 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2927-2932 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2942-2947 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2957-2962 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3125-3130 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3140-3145 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3155-3160 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3170-3175 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3185-3190 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3200-3205 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3215-3220 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 11) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:646 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:646-651 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4992-4997 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6998-7003 | crates/libs/windows/src/Windows/Devices/Background/mod.rs:12-17 | crates/libs/windows/src/Windows/Devices/Background/mod.rs:48-53 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2064-2069 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2612-2617 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:430-435 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:563-568 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3299-3304 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:242-247 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/Notifications/mod.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 11) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3070 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3070-3075 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:2237-2242 | crates/libs/windows/src/Windows/Web/Http/mod.rs:38-43 | crates/libs/windows/src/Windows/Web/Http/mod.rs:609-614 | crates/libs/windows/src/Windows/Web/Http/mod.rs:978-983 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1108-1113 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1297-1302 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1468-1473 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1660-1665 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1753-1758 | crates/libs/windows/src/Windows/Web/Http/mod.rs:2018-2023 — before extracting anything, compare `crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs` and `crates/libs/windows/src/Windows/Web/Http/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 17) · ×3
  • Duplicated block (5 lines × 17) crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:766 — crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:766-770 | crates/libs/windows/src/Windows/Media/Core/mod.rs:112-116 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2217-2221 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6067-6071 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7517-7521 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:391-395 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:505-509 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:613-617 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:915-919 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1239-1243 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1482-1486 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1833-1837 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1997-2001 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2274-2278 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2459-2463 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2671-2675 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2826-2830 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 17) crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1476 — crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1476-1480 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:104-108 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1033-1037 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1313-1317 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4593-4597 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4863-4867 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5149-5153 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5487-5491 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6328-6332 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1367-1371 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1539-1543 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2569-2573 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2797-2801 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2929-2933 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3007-3011 | crates/libs/windows/src/Windows/UI/Core/mod.rs:32-36 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4955-4959 — `crates/libs/windows/src/Windows/Devices/Midi/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 17) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:607 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:607-611 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1025-1029 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1118-1122 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1211-1215 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1304-1308 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1404-1408 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1553-1557 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1661-1665 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1758-1762 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1851-1855 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1944-1948 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2037-2041 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2130-2134 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2266-2270 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2351-2355 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2444-2448 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2537-2541 — all 17 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×3
  • Duplicated block (25 lines × 2) crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:1257 — crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:1257-1281 | crates/libs/windows/src/Windows/Win32/evr/mod.rs:76-100 — `crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs` and `crates/libs/windows/src/Windows/Win32/evr/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (25 lines × 2) crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:10432 — crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:10432-10456 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:15643-15667 — `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 26 separate duplicated blocks between them, totalling at least 284 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (25 lines × 2) crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:1633 — crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:1633-1657 | crates/libs/windows/src/Windows/Win32/evr/mod.rs:137-161 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (6 lines × 35) · ×3
  • Duplicated block (6 lines × 35) crates/libs/windows/src/Windows/AI/Actions/mod.rs:1977 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:1977-1982 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2133-2138 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:681-686 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:2755-2760 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:2869-2874 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2934-2939 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3492-3497 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:3076-3081 | crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs:97-102 | crates/libs/windows/src/Windows/Data/Text/mod.rs:315-320 | crates/libs/windows/src/Windows/Data/Text/mod.rs:931-936 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5907-5912 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6516-6521 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6729-6734 | crates/libs/windows/src/Windows/Media/Ocr/mod.rs:169-174 | crates/libs/windows/src/Windows/Media/Ocr/mod.rs:205-210 | crates/libs/windows/src/Windows/Media/Ocr/mod.rs:235-240 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4595-4600 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:837-842 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1002-1007 | crates/libs/windows/src/Windows/Media/mod.rs:727-732 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2523-2528 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2828-2833 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2911-2916 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1015-1020 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1075-1080 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:45-50 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:835-840 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:904-909 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2729-2734 | crates/libs/windows/src/Windows/UI/Text/mod.rs:4648-4653 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:848-853 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1926-1931 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2871-2876 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12358-12363 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 35) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3075 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3075-3080 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:1024-1029 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:457-462 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:490-495 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:523-528 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:604-609 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:237-242 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:270-275 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:379-384 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:194-199 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:722-727 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2119-2124 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2211-2216 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2244-2249 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2277-2282 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2310-2315 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2343-2348 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2382-2387 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2415-2420 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2454-2459 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2487-2492 | crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs:98-103 | crates/libs/windows/src/Windows/UI/Core/mod.rs:121-126 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1938-1943 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4465-4470 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:461-466 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4024-4029 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4063-4068 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4102-4107 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:113-118 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:341-346 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:469-474 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:645-650 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1556-1561 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1785-1790 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 35) crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs:104 — crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs:104-109 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2301-2306 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3047-3052 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:778-783 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:13-18 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:73-78 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:264-269 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:466-471 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1027-1032 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:597-602 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1015-1020 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1108-1113 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1201-1206 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1294-1299 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1394-1399 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1543-1548 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1651-1656 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1748-1753 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1841-1846 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1934-1939 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2027-2032 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2120-2125 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2256-2261 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2341-2346 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2434-2439 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2527-2532 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:600-605 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1030-1035 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4329-4334 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:1366-1371 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:1056-1061 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:655-660 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:2008-2013 | crates/libs/windows/src/Windows/Web/Http/mod.rs:725-730 | crates/libs/windows/src/Windows/Web/Http/mod.rs:786-791 — `crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 20) · ×3
  • Duplicated block (6 lines × 20) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1554 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1554-1559 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2801-2806 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1506-1511 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:1564-1569 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2466-2471 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1212-1217 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1980-1985 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2044-2049 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2331-2336 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2397-2402 | crates/libs/windows/src/Windows/Management/Update/mod.rs:3252-3257 | crates/libs/windows/src/Windows/Media/AppRecording/mod.rs:77-82 | crates/libs/windows/src/Windows/Media/AppRecording/mod.rs:133-138 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:115-120 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:571-576 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1729-1734 | crates/libs/windows/src/Windows/Web/Http/mod.rs:718-723 | crates/libs/windows/src/Windows/Web/Http/mod.rs:779-784 | crates/libs/windows/src/Windows/Web/Http/mod.rs:840-845 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1412-1417 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 20) crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:212 — crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:212-217 | crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs:36-41 | crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs:115-120 | crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs:37-42 | crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs:87-92 | crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs:235-240 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9778-9783 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:575-580 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:2621-2626 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2654-2659 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2738-2743 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4873-4878 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7453-7458 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2990-2995 | crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs:121-126 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1823-1828 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2788-2793 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:345-350 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:307-312 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:699-704 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs` and `crates/libs/windows/src/Windows/Media/Core/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 20) crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:105 — crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:105-110 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:441-446 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:919-924 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1459-1464 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:168-173 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:1128-1133 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:760-765 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:968-973 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1734-1739 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3756-3761 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:95-100 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:485-490 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:597-602 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:2245-2250 | crates/libs/windows/src/Windows/Security/ExchangeActiveSyncProvisioning/mod.rs:25-30 | crates/libs/windows/src/Windows/System/Profile/SystemManufacturers/mod.rs:128-133 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1415-1420 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1757-1762 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4540-4545 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14911-14916 — before extracting anything, compare `crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs` and `crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 19) · ×3
  • Duplicated block (6 lines × 19) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5619 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5619-5624 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7386-7391 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1827-1832 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:3044-3049 | crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:230-235 | crates/libs/windows/src/Windows/Devices/Usb/mod.rs:905-910 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:875-880 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1010-1015 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1229-1234 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1288-1293 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1324-1329 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1600-1605 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1642-1647 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1956-1961 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2133-2138 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2341-2346 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2472-2477 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1854-1859 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3772-3777 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Networking/Vpn/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 19) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6601 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6601-6606 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8039-8044 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:6-11 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:49-54 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1880-1885 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1930-1935 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1974-1979 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2018-2023 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2212-2217 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2558-2563 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2608-2613 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3445-3450 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:545-550 | crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs:860-865 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:282-287 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:321-326 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:823-828 | crates/libs/windows/src/Windows/System/mod.rs:2708-2713 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4983-4988 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 19) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:582 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:582-587 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1000-1005 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1093-1098 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1186-1191 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1279-1284 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1379-1384 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1528-1533 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1636-1641 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1733-1738 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1826-1831 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1919-1924 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2012-2017 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2105-2110 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2241-2246 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2326-2331 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2419-2424 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2512-2517 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:693-698 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12403-12408 — there are 19 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 19 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (6 lines × 26) · ×3
  • Duplicated block (6 lines × 26) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6024 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6024-6029 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7683-7688 | crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs:267-272 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:70-75 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:424-429 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:572-577 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:644-649 | crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs:427-432 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1536-1541 | crates/libs/windows/src/Windows/Media/Core/mod.rs:201-206 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2084-2089 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2612-2617 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5993-5998 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7585-7590 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:506-511 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1770-1775 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2463-2468 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2751-2756 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1408-1413 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1999-2004 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:54-59 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1559-1564 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1753-1758 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4142-4147 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:561-566 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2560-2565 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 26) crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1408 — crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1408-1413 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4309-4314 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:649-654 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:343-348 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:774-779 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2302-2307 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1542-1547 | crates/libs/windows/src/Windows/Foundation/mod.rs:1581-1586 | crates/libs/windows/src/Windows/Foundation/mod.rs:2377-2382 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1741-1746 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:220-225 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2251-2256 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1376-1381 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1710-1715 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2693-2698 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3468-3473 | crates/libs/windows/src/Windows/Web/Http/mod.rs:441-446 | crates/libs/windows/src/Windows/Web/Http/mod.rs:846-851 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1120-1125 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1714-1719 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1394-1399 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4549-4554 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13991-13996 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9233-9238 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:700-705 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1706-1711 — `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 47 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 26) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:817 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:817-822 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:920-925 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3842-3847 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4579-4584 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4942-4947 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:256-261 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:527-532 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1024-1029 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1422-1427 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2116-2121 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2329-2334 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3848-3853 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4000-4005 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4085-4090 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4170-4175 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4340-4345 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4425-4430 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4550-4555 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4760-4765 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4930-4935 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5139-5144 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5789-5794 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6434-6439 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6519-6524 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:1730-1735 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6112-6117 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/dwrite/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 113 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 16) · ×3
  • Duplicated block (6 lines × 16) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:24 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:24-29 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:213-218 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:321-326 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:483-488 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:44-49 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:105-110 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:444-449 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:654-659 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:921-926 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1323-1328 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:284-289 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2365-2370 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:355-360 | crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs:20-25 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:50-55 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:570-575 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 16) crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:2809 — crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:2809-2814 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2672-2677 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:866-871 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1559-1564 | crates/libs/windows/src/Windows/Globalization/Collation/mod.rs:12-17 | crates/libs/windows/src/Windows/Media/Core/mod.rs:216-221 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2187-2192 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2627-2632 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7600-7605 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:406-411 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1710-1715 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:564-569 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:56-61 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:410-415 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:536-541 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1165-1170 — `crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 16) crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:136 — crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:136-141 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:264-269 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:465-470 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:489-494 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:729-734 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:934-939 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1166-1171 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1463-1468 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1676-1681 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1998-2003 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4770-4775 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5023-5028 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5321-5326 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5625-5630 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5835-5840 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6053-6058 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sensors/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D1 · Cyclomatic Complexity · Snapshot · ×2
  • Snapshot::plan (cyclomatic 181) crates/libs/clang/src/lib.rs:773 — Snapshot::plan has cyclomatic complexity 181 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Snapshot::emit_items (cyclomatic 26) crates/libs/clang/src/lib.rs:497 — Snapshot::emit_items has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Method · ×2
  • Method::write (cyclomatic 92) crates/libs/bindgen/src/types/method.rs:347 — Method::write has cyclomatic complexity 92 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Method::write_abi (cyclomatic 17) crates/libs/bindgen/src/types/method.rs:273 — Method::write_abi has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ITextRange_Vtbl · ×2
  • ITextRange_Vtbl::new (cyclomatic 36) crates/libs/windows/src/Windows/Win32/tom/mod.rs:4981 — ITextRange_Vtbl::new has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 1 of the 36 points is its own statement and the rest belongs to 35 function items inside it that branch (GetText, GetChar, GetDuplicate, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • ITextRange_Vtbl::new (cyclomatic 26) crates/libs/windows/src/Windows/UI/Text/mod.rs:2959 — ITextRange_Vtbl::new has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 25 function items inside it that branch (Character, CharacterFormat, FormattedText, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · windows_bindgen · ×2
  • windows_bindgen::cli::bindgen (cyclomatic 29) crates/libs/bindgen/src/cli.rs:78 — windows_bindgen::cli::bindgen has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • windows_bindgen::filter_parser::resolve_one (cyclomatic 17) crates/libs/bindgen/src/filter_parser.rs:171 — windows_bindgen::filter_parser::resolve_one has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Reader · ×2
  • Reader::write (cyclomatic 29) crates/libs/rdl/src/reader/mod.rs:156 — Reader::write has cyclomatic complexity 29 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
  • Reader::from_index (cyclomatic 26) crates/libs/bindgen/src/winmd/reader.rs:57 — Reader::from_index has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ComponentLoop · ×2
  • ComponentLoop::live_controlled_feedback_native_finish (cyclomatic 22) crates/libs/reactor/src/app/mod.rs:652 — ComponentLoop::live_controlled_feedback_native_finish has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • ComponentLoop::live_content_dialog_lifecycle_step_impl (cyclomatic 19) crates/libs/reactor/src/app/mod.rs:350 — ComponentLoop::live_content_dialog_lifecycle_step_impl has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IPropertyValue_Vtbl · ×2
  • IPropertyValue_Vtbl::new (cyclomatic 21) crates/libs/reference/src/bindings.rs:78 — IPropertyValue_Vtbl::new has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 20 function items inside it that branch (Type, IsNumericScalar, GetUInt8, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • IPropertyValue_Vtbl::new (cyclomatic 21) crates/libs/windows/src/Windows/Foundation/mod.rs:674 — IPropertyValue_Vtbl::new has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 20 function items inside it that branch (Type, IsNumericScalar, GetUInt8, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Snapshot · ×2
  • Snapshot::plan (cognitive 294) crates/libs/clang/src/lib.rs:773 — Snapshot::plan has cognitive complexity 294 (threshold 15). Drivers by points: if/else 92 (178 pts), loops 46 (64 pts), boolean chains 40, match/switch 6 (12 pts) (nesting depth added 110). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Snapshot::emit_items (cognitive 32) crates/libs/clang/src/lib.rs:497 — Snapshot::emit_items has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 4 (6 pts), match/switch 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Filter · ×2
  • Filter::register_member (cognitive 120) crates/libs/bindgen/src/filter.rs:389 — Filter::register_member has cognitive complexity 120 (threshold 15). Drivers by points: if/else 23 (86 pts), loops 6 (29 pts), match/switch 2 (5 pts) (nesting depth added 89). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • Filter::from_resolved (cognitive 49) crates/libs/bindgen/src/filter.rs:212 — Filter::from_resolved has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (42 pts), loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Type · ×2
  • Type::combine_closure (cognitive 68) crates/libs/bindgen/src/type_closure.rs:131 — Type::combine_closure has cognitive complexity 68 (threshold 15). Drivers by points: loops 14 (32 pts), if/else 15 (31 pts), boolean chains 3, match/switch 2 (nesting depth added 34). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
  • Type::combine_sys (cognitive 16) crates/libs/bindgen/src/types/mod.rs:113 — Type::combine_sys has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 4 (5 pts), boolean chains 2, match/switch 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MetadataResolver · ×2
  • MetadataResolver::load (cognitive 65) crates/tools/reactor/src/metadata.rs:95 — MetadataResolver::load has cognitive complexity 65 (threshold 15). Drivers by points: if/else 15 (40 pts), match/switch 4 (14 pts), loops 5 (8 pts), boolean chains 3 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • MetadataResolver::collect_methods_for_class (cognitive 18) crates/tools/reactor/src/metadata.rs:330 — MetadataResolver::collect_methods_for_class has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (5 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Class · ×2
  • Class::write (cognitive 59) crates/libs/bindgen/src/types/class.rs:17 — Class::write has cognitive complexity 59 (threshold 15). Drivers by points: if/else 24 (35 pts), loops 4 (10 pts), boolean chains 8, match/switch 3 (6 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Class::required_interfaces (cognitive 24) crates/libs/bindgen/src/types/class.rs:390 — Class::required_interfaces has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (5 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to one function item inside it that branches (walk). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Reader · ×2
  • Reader::from_index (cognitive 58) crates/libs/bindgen/src/winmd/reader.rs:57 — Reader::from_index has cognitive complexity 58 (threshold 15). Drivers by points: if/else 8 (33 pts), loops 3 (12 pts), match/switch 3 (10 pts), boolean chains 3 (nesting depth added 41). Of this number, 47 points are the body's own statements and 11 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Reader::write (cognitive 44) crates/libs/rdl/src/reader/mod.rs:156 — Reader::write has cognitive complexity 44 (threshold 15). Drivers by points: loops 11 (25 pts), if/else 5 (14 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · Config · ×2
  • Config::write_package (cognitive 41) crates/libs/bindgen/src/package_writer.rs:101 — Config::write_package has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 9 (13 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Config::write_namespace (cognitive 17) crates/libs/bindgen/src/paths.rs:65 — Config::write_namespace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · windows_metadata · ×2
  • windows_metadata::merge::write_enum_union (cognitive 36) crates/libs/metadata/src/merge/mod.rs:504 — windows_metadata::merge::write_enum_union has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 4 (5 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_metadata::merge::write_type_arch_merged (cognitive 24) crates/libs/metadata/src/merge/mod.rs:828 — windows_metadata::merge::write_type_arch_merged has cognitive complexity 24 (threshold 15). Drivers by points: loops 9 (14 pts), if/else 6 (9 pts), boolean chains 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · ITextRange_Vtbl · ×2
  • ITextRange_Vtbl::new (cognitive 35) crates/libs/windows/src/Windows/Win32/tom/mod.rs:4981 — ITextRange_Vtbl::new has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 35. Most of this is not in the body itself: 0 of the 35 points are its own statements and the rest belongs to 35 function items inside it that branch (GetText, GetChar, GetDuplicate, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • ITextRange_Vtbl::new (cognitive 25) crates/libs/windows/src/Windows/UI/Text/mod.rs:2959 — ITextRange_Vtbl::new has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 25. Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 25 function items inside it that branch (Character, CharacterFormat, FormattedText, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ComponentLoop · ×2
  • ComponentLoop::live_content_dialog_lifecycle_step_impl (cognitive 23) crates/libs/reactor/src/app/mod.rs:350 — ComponentLoop::live_content_dialog_lifecycle_step_impl has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ComponentLoop::live_controlled_feedback_native_finish (cognitive 21) crates/libs/reactor/src/app/mod.rs:652 — ComponentLoop::live_controlled_feedback_native_finish has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, boolean chains 9. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · windows_reactor · ×2
  • windows_reactor::native::winui::grid::set_definitions (cognitive 22) crates/libs/reactor/src/native/winui/grid.rs:125 — windows_reactor::native::winui::grid::set_definitions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • windows_reactor::native::winui::pointer_event_handler (cognitive 17) crates/libs/reactor/src/native/winui/mod.rs:116 — windows_reactor::native::winui::pointer_event_handler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IPropertyValue_Vtbl · ×2
  • IPropertyValue_Vtbl::new (cognitive 20) crates/libs/reference/src/bindings.rs:78 — IPropertyValue_Vtbl::new has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 20. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 20 function items inside it that branch (Type, IsNumericScalar, GetUInt8, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • IPropertyValue_Vtbl::new (cognitive 20) crates/libs/windows/src/Windows/Foundation/mod.rs:674 — IPropertyValue_Vtbl::new has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 20. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 20 function items inside it that branch (Type, IsNumericScalar, GetUInt8, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · tool_win32 · ×2
  • tool_win32::scrape_um_arch (cognitive 20) crates/tools/win32/src/main.rs:1164 — tool_win32::scrape_um_arch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 5 (7 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • tool_win32::replace_rdl (cognitive 17) crates/tools/win32/src/main.rs:871 — tool_win32::replace_rdl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Blob · ×2
  • Blob::read_type_signature (cognitive 17) crates/libs/metadata/src/reader/blob.rs:101 — Blob::read_type_signature has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • Blob::read_type_code (cognitive 17) crates/libs/metadata/src/reader/blob.rs:150 — Blob::read_type_code has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D35 · Change Coupling · Change coupling · ×2
  • Change coupling: lib.rs ↔ lib.rs crates/libs/sys/src/lib.rs — `crates/libs/sys/src/lib.rs` and `crates/libs/windows/src/lib.rs` change together 79% of the time (11 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are `8bc13e58` Remove `improper_ctypes` workaround (#3296); `bca9a76f` Address Rust nightly compiler warnings (#3292); `f766e5ae` Remove unnecessary doc attributes (#3206) — run `git show` on any of them.
  • Change coupling: interface.rs ↔ interface.rs crates/libs/rdl/src/reader/interface.rs — `crates/libs/rdl/src/reader/interface.rs` and `crates/libs/rdl/src/writer/interface.rs` change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `8d9839a4` feat(rdl): add property and event shorthand syntax for interfaces (#4…; `25089b65` windows-rdl: Add #[guid(u128)] and #[no_guid] pseudo-attributes for i…; `a383edcf` `windows-rdl` should optionally infer GUIDs for interfaces and WinRT … — run `git show` on any of them.
D4 · Code Duplication · Near-duplicate member family (4 members, 17 shared lines) · ×2
  • Near-duplicate member family (4 members, 17 shared lines) crates/libs/reactor/src/native/winui/bindings.rs:20228 — crates/libs/reactor/src/native/winui/bindings.rs:20228-20250 | crates/libs/reactor/src/native/winui/bindings.rs:20258-20280 | crates/libs/reactor/src/native/winui/bindings.rs:20285-20307 | crates/libs/reactor/src/native/winui/bindings.rs:20312-20334 — These 4 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Near-duplicate member family (4 members, 17 shared lines) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3179 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3179-3209 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3553-3596 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1473-1537 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3561-3690 — These 4 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Members sharing a duplicated core (99 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (99 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:81 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:81-87 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:143-149 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:205-211 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:267-273 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:340-346 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:432-438 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:486-492 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:541-547 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:593-599 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:692-698 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:758-764 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:819-825 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:885-891 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:947-953 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:994-1000 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1060-1066 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1126-1132 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1201-1207 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1256-1262 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1339-1345 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1430-1436 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1492-1498 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1555-1561 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1624-1630 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1687-1693 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1851-1857 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1926-1932 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1997-2003 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2067-2073 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2153-2159 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2239-2245 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2336-2342 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2453-2459 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2603-2609 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2676-2682 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2760-2766 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2848-2854 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2932-2938 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3014-3020 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3139-3145 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3256-3262 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3457-3463 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3548-3554 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3678-3684 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3795-3801 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3865-3871 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3949-3955 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4038-4044 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4116-4122 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4206-4212 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4300-4306 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4373-4379 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4467-4473 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4596-4602 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4680-4686 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4831-4837 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4915-4921 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5004-5010 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5092-5098 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5178-5184 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5248-5254 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5337-5343 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5405-5411 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5477-5483 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5549-5555 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5625-5631 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5703-5709 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5779-5785 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5874-5880 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5952-5958 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6030-6036 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6176-6182 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6267-6273 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6357-6363 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6452-6458 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6531-6537 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6607-6613 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6695-6701 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6805-6811 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6884-6890 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6962-6968 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7051-7057 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7105-7111 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7217-7223 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7271-7277 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7317-7323 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7364-7370 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7411-7417 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7495-7501 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7587-7593 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7641-7647 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7724-7730 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7815-7821 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7894-7900 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7962-7968 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8009-8015 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8064-8070 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8123-8129 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8178-8184 — These 99 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 99 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 99 times.
  • Members sharing a duplicated core (99 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:88 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:88-94 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:150-156 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:212-218 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:274-280 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:347-353 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:439-445 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:493-499 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:548-554 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:600-606 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:699-705 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:765-771 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:826-832 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:892-898 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:954-960 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1001-1007 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1067-1073 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1133-1139 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1208-1214 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1263-1269 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1346-1352 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1437-1443 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1499-1505 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1562-1568 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1631-1637 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1694-1700 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1858-1864 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1933-1939 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2004-2010 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2074-2080 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2160-2166 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2246-2252 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2343-2349 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2460-2466 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2610-2616 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2683-2689 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2767-2773 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2855-2861 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2939-2945 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3021-3027 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3146-3152 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3263-3269 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3464-3470 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3555-3561 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3685-3691 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3802-3808 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3872-3878 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3956-3962 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4045-4051 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4123-4129 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4213-4219 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4307-4313 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4380-4386 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4474-4480 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4603-4609 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4687-4693 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4838-4844 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4922-4928 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5011-5017 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5099-5105 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5185-5191 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5255-5261 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5344-5350 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5412-5418 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5484-5490 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5556-5562 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5632-5638 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5710-5716 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5786-5792 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5881-5887 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5959-5965 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6037-6043 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6183-6189 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6274-6280 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6364-6370 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6459-6465 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6538-6544 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6614-6620 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6702-6708 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6812-6818 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6891-6897 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6969-6975 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7058-7064 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7112-7118 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7224-7230 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7278-7284 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7324-7330 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7371-7377 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7418-7424 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7502-7508 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7594-7600 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7648-7654 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7731-7737 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7822-7828 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7901-7907 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7969-7975 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8016-8022 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8071-8077 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8130-8136 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8185-8191 — These 99 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 99 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 99 times.
D4 · Code Duplication · Members sharing a duplicated core (49 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (49 members, 50+ identical tokens) crates/libs/windows/src/Windows/Gaming/UI/mod.rs:225 — crates/libs/windows/src/Windows/Gaming/UI/mod.rs:225-231 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:586-592 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1238-1244 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1059-1065 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2237-2243 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3153-3159 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1266-1272 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1340-1346 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1414-1420 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1488-1494 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1573-1579 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1762-1768 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1832-1838 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1899-1905 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1963-1969 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2033-2039 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2111-2117 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2184-2190 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2262-2268 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2340-2346 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2399-2405 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2477-2483 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2555-2561 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2634-2640 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2701-2707 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2788-2794 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2876-2882 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2950-2956 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3025-3031 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3106-3112 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3181-3187 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3256-3262 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3349-3355 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3422-3428 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3614-3620 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3684-3690 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3743-3749 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3851-3857 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3939-3945 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4035-4041 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4101-4107 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4180-4186 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4247-4253 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4317-4323 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4390-4396 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4946-4952 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5013-5019 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5084-5090 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5151-5157 — These 49 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 49 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 49 times.
  • Members sharing a duplicated core (49 members, 50+ identical tokens) crates/libs/windows/src/Windows/Gaming/UI/mod.rs:232 — crates/libs/windows/src/Windows/Gaming/UI/mod.rs:232-238 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:593-599 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1245-1251 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1066-1072 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2244-2250 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3160-3166 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1273-1279 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1347-1353 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1421-1427 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1495-1501 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1580-1586 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1769-1775 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1839-1845 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1906-1912 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1970-1976 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2040-2046 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2118-2124 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2191-2197 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2269-2275 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2347-2353 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2406-2412 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2484-2490 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2562-2568 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2641-2647 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2708-2714 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2795-2801 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2883-2889 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2957-2963 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3032-3038 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3113-3119 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3188-3194 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3263-3269 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3356-3362 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3429-3435 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3621-3627 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3691-3697 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3750-3756 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3858-3864 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3946-3952 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4042-4048 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4108-4114 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4187-4193 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4254-4260 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4324-4330 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4397-4403 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4953-4959 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5020-5026 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5091-5097 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5158-5164 — These 49 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 49 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 49 times.
D4 · Code Duplication · Members sharing a duplicated core (27 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (27 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:704 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:704-710 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1088-1094 | crates/libs/windows/src/Windows/Data/Json/mod.rs:421-427 | crates/libs/windows/src/Windows/Data/Json/mod.rs:741-747 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:37-43 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:150-156 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:356-362 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1015-1021 | crates/libs/windows/src/Windows/Storage/mod.rs:315-321 | crates/libs/windows/src/Windows/Storage/mod.rs:484-490 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:969-975 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:84-90 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:291-297 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:480-486 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:669-675 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:870-876 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1217-1223 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1480-1486 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1820-1826 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1955-1961 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2163-2169 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2462-2468 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2593-2599 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2937-2943 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3221-3227 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3400-3406 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3563-3569 — These 27 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 27 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 27 times.
  • Members sharing a duplicated core (27 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1291 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1291-1367 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1600-1696 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:419-483 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:759-830 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2326-2390 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2570-2654 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2913-2997 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3340-3430 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3975-4111 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4389-4505 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4755-4826 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5032-5096 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5415-5492 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5583-5661 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6744-6808 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10264-10348 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10797-10887 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13830-13914 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14132-14196 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14275-14346 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1418-1606 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6891-6928 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7997-8040 | crates/libs/windows/src/Windows/Win32/control/mod.rs:52-95 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1153-1242 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:544-621 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:842-919 — These 27 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 27 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 27 times.
D4 · Code Duplication · Members sharing a duplicated core (26 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (26 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:46 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:46-52 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:301-307 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:628-634 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2022-2028 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2332-2338 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2616-2622 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2907-2913 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3347-3353 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3594-3600 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3855-3861 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4212-4218 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4455-4461 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4982-4988 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5281-5287 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:356-362 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:470-476 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:578-584 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:880-886 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1204-1210 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1447-1453 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1798-1804 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1962-1968 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2239-2245 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2424-2430 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2636-2642 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2791-2797 — These 26 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 26 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 26 times.
  • Members sharing a duplicated core (26 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:645 — crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:645-733 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1458-1466 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1806-1831 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1949-1957 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2262-2294 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2360-2399 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2483-2536 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2602-2641 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8322-8340 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:473-504 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:2965-2973 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6914-7051 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:8586-8594 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:11656-11681 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18873-18912 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32592-32748 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33004-33208 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33508-33753 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34149-34476 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1121-1146 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:213-227 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10889-10921 | crates/libs/windows/src/Windows/Win32/dxcore_interface/mod.rs:465-473 | crates/libs/windows/src/Windows/Win32/dxcore_interface/mod.rs:617-625 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1043-1107 | crates/libs/windows/src/Windows/Win32/filtereg/mod.rs:124-135 — These 26 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 26 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 26 times.
D4 · Code Duplication · Members sharing a duplicated core (20 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (20 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Json/mod.rs:407 — crates/libs/windows/src/Windows/Data/Json/mod.rs:407-413 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4754-4760 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4885-4891 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:799-805 | crates/libs/windows/src/Windows/Foundation/mod.rs:2292-2298 | crates/libs/windows/src/Windows/Globalization/Collation/mod.rs:63-69 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:955-961 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:70-76 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:277-283 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:466-472 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:655-661 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:856-862 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1466-1472 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1806-1812 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1941-1947 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2149-2155 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2448-2454 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2579-2585 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2923-2929 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3549-3555 — These 20 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 20 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 20 times.
  • Members sharing a duplicated core (20 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Json/mod.rs:431 — crates/libs/windows/src/Windows/Data/Json/mod.rs:431-437 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4771-4777 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4902-4908 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:816-822 | crates/libs/windows/src/Windows/Foundation/mod.rs:2309-2315 | crates/libs/windows/src/Windows/Globalization/Collation/mod.rs:80-86 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:979-985 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:94-100 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:301-307 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:490-496 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:679-685 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:880-886 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1490-1496 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1830-1836 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1965-1971 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2173-2179 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2472-2478 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2603-2609 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2947-2953 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3573-3579 — These 20 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 20 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 20 times.
D4 · Code Duplication · Members sharing a duplicated core (19 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (19 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:958 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:958-964 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs:121-127 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:426-432 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:299-305 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1870-1876 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1920-1926 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1499-1505 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1581-1587 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1689-1695 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2666-2672 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2725-2731 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2796-2802 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2864-2870 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:337-343 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:913-919 | crates/libs/windows/src/Windows/Storage/mod.rs:3161-3167 | crates/libs/windows/src/Windows/Storage/mod.rs:3309-3315 | crates/libs/windows/src/Windows/Storage/mod.rs:4575-4581 | crates/libs/windows/src/Windows/Storage/mod.rs:5006-5012 — These 19 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 19 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 19 times.
  • Members sharing a duplicated core (19 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:277 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:277-320 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:548-591 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1045-1088 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1443-1486 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2137-2180 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2350-2393 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3869-3912 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4021-4064 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4106-4149 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4191-4234 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4361-4404 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4446-4489 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4571-4614 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4781-4824 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4951-4994 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5160-5203 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5810-5853 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6455-6498 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6540-6583 — These 19 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 19 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 19 times.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×2
  • Duplicated block (24 lines × 2) crates/libs/bindgen/src/format.rs:59 — crates/libs/bindgen/src/format.rs:59-82 | crates/libs/bindgen/src/format.rs:197-220 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (24 lines × 2) crates/libs/metadata/src/reader/file.rs:785 — crates/libs/metadata/src/reader/file.rs:785-808 | crates/libs/metadata/src/writer/file/rec.rs:509-532 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×2
  • Duplicated block (23 lines × 2) crates/libs/reactor/src/core/pump/planner/topology.rs:729 — crates/libs/reactor/src/core/pump/planner/topology.rs:729-751 | crates/libs/reactor/src/core/pump/planner/topology.rs:767-789 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (23 lines × 2) crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11797 — crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11797-11819 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:17076-17098 — `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 26 separate duplicated blocks between them, totalling at least 284 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×2
  • Duplicated block (21 lines × 2) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:35921 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:35921-35941 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36451-36471 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (21 lines × 2) crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3806 — crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3806-3826 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:4246-4266 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×2
  • Duplicated block (19 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:6241 — crates/libs/reactor/src/native/winui/bindings.rs:6241-6259 | crates/libs/reactor/src/native/winui/bindings.rs:12200-12218 | crates/libs/reactor/src/native/winui/bindings.rs:16993-17011 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (19 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:13250 — crates/libs/reactor/src/native/winui/bindings.rs:13250-13268 | crates/libs/reactor/src/native/winui/bindings.rs:14948-14966 | crates/libs/reactor/src/native/winui/bindings.rs:15114-15132 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×2
  • Duplicated block (18 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4258 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4258-4275 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:8680-8697 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (18 lines × 2) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2599 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2599-2616 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:225-242 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Printing/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) crates/libs/collections/src/bindings.rs:302 — crates/libs/collections/src/bindings.rs:302-315 | crates/libs/collections/src/bindings.rs:2355-2368 | crates/libs/collections/src/bindings.rs:2789-2802 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (14 lines × 3) crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2593 — crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2593-2606 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2767-2780 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2822-2835 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×2
  • Duplicated block (11 lines × 4) crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2593 — crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2593-2603 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2707-2717 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2767-2777 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2822-2832 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 4) crates/libs/composition/src/bindings.rs:2568 — crates/libs/composition/src/bindings.rs:2568-2578 | crates/libs/composition/src/bindings.rs:2685-2695 | crates/libs/composition/src/bindings_lifted.rs:2381-2391 | crates/libs/composition/src/bindings_lifted.rs:2498-2508 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (10 lines × 6) · ×2
  • Duplicated block (10 lines × 6) crates/libs/reactor/src/native/winui/bindings.rs:21907 — crates/libs/reactor/src/native/winui/bindings.rs:21907-21917 | crates/libs/windows/src/Windows/Foundation/mod.rs:1428-1438 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:100-110 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:176-186 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1009-1018 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2673-2683 — there are 6 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (10 lines × 6) crates/libs/windows/src/Windows/Devices/Sms/mod.rs:133 — crates/libs/windows/src/Windows/Devices/Sms/mod.rs:133-142 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:162-171 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:602-611 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1494-1503 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1544-1553 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1558-1567 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` and `crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×2
  • Duplicated block (9–10 lines × 2) crates/libs/bindgen/src/types/delegate.rs:77 — crates/libs/bindgen/src/types/delegate.rs:77-85 | crates/libs/bindgen/src/types/interface.rs:296-305 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9–10 lines × 2) crates/libs/clang/src/extract.rs:409 — crates/libs/clang/src/extract.rs:409-418 | crates/libs/clang/src/extract.rs:437-445 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (9 lines × 71) · ×2
  • Duplicated block (9 lines × 71) crates/libs/collections/src/bindings.rs:726 — crates/libs/collections/src/bindings.rs:726-734 | crates/libs/collections/src/bindings.rs:1216-1224 | crates/libs/reactor/src/native/winui/bindings.rs:9160-9168 | crates/libs/reactor/src/native/winui/bindings.rs:21862-21870 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:177-185 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4580-4588 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4898-4906 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:483-491 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:496-504 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:509-517 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1544-1552 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1557-1565 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1570-1578 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1583-1591 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1780-1788 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1793-1801 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1806-1814 | crates/libs/windows/src/Windows/Devices/I2c/mod.rs:377-385 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:3287-3295 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:289-297 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:153-161 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:166-174 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1085-1093 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1313-1321 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1326-1334 | crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs:325-333 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1049-1057 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1062-1070 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:342-350 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1330-1338 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1343-1351 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1356-1364 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1369-1377 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1395-1403 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1562-1570 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1551-1559 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:308-316 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:321-329 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:346-354 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:359-367 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:372-380 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:352-360 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:365-373 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1045-1053 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1213-1221 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1226-1234 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1479-1487 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1504-1512 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:768-776 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:807-815 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:833-841 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1195-1203 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2032-2040 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2113-2121 | crates/libs/windows/src/Windows/Storage/mod.rs:1747-1755 | crates/libs/windows/src/Windows/Storage/mod.rs:1760-1768 | crates/libs/windows/src/Windows/Storage/mod.rs:1786-1794 | crates/libs/windows/src/Windows/Storage/mod.rs:1799-1807 | crates/libs/windows/src/Windows/Storage/mod.rs:1812-1820 | crates/libs/windows/src/Windows/Storage/mod.rs:2233-2241 | crates/libs/windows/src/Windows/Storage/mod.rs:2259-2267 | crates/libs/windows/src/Windows/Storage/mod.rs:2285-2293 | crates/libs/windows/src/Windows/Storage/mod.rs:2298-2306 | crates/libs/windows/src/Windows/Storage/mod.rs:2311-2319 | crates/libs/windows/src/Windows/Storage/mod.rs:2595-2603 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:122-130 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1062-1070 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1075-1083 | crates/libs/windows/src/Windows/Web/UI/mod.rs:609-617 | crates/libs/windows/src/Windows/Web/UI/mod.rs:622-630 | crates/libs/windows/src/Windows/Web/UI/mod.rs:648-656 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/reactor/src/native/winui/bindings.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 71) crates/libs/collections/src/bindings.rs:726 — crates/libs/collections/src/bindings.rs:726-734 | crates/libs/collections/src/bindings.rs:1216-1224 | crates/libs/reactor/src/native/winui/bindings.rs:9160-9168 | crates/libs/windows/src/Windows/AI/Actions/Provider/mod.rs:31-39 | crates/libs/windows/src/Windows/AI/Actions/Provider/mod.rs:84-92 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4606-4614 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:483-491 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:496-504 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:509-517 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:522-530 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1327-1335 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1544-1552 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1557-1565 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1570-1578 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1583-1591 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1806-1814 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1819-1827 | crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:30-38 | crates/libs/windows/src/Windows/Devices/I2c/mod.rs:390-398 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:3287-3295 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:289-297 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:61-69 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:179-187 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1326-1334 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1352-1360 | crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs:325-333 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1774-1782 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:342-350 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:558-566 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1036-1044 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1330-1338 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1343-1351 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1356-1364 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1369-1377 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1395-1403 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1408-1416 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1595-1603 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:2440-2448 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1118-1126 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1551-1559 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:786-794 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:983-991 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:48-56 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:308-316 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:352-360 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:365-373 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1045-1053 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1213-1221 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1226-1234 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1239-1247 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1479-1487 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:768-776 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:807-815 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:833-841 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1195-1203 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2032-2040 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2113-2121 | crates/libs/windows/src/Windows/Storage/mod.rs:1747-1755 | crates/libs/windows/src/Windows/Storage/mod.rs:1786-1794 | crates/libs/windows/src/Windows/Storage/mod.rs:1799-1807 | crates/libs/windows/src/Windows/Storage/mod.rs:1838-1846 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:194-202 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:428-436 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1062-1070 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1075-1083 | crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs:514-522 | crates/libs/windows/src/Windows/Web/Http/mod.rs:2169-2177 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:255-263 | crates/libs/windows/src/Windows/Web/UI/mod.rs:609-617 | crates/libs/windows/src/Windows/Web/UI/mod.rs:622-630 | crates/libs/windows/src/Windows/Web/mod.rs:42-50 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/reactor/src/native/winui/bindings.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 15) · ×2
  • Duplicated block (8 lines × 15) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:861 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:861-868 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3184-3191 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3196-3203 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3359-3366 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3558-3565 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3570-3577 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3582-3589 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:372-379 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5043-5050 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10838-10845 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9627-9634 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1484-1491 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1502-1509 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1520-1527 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6932-6939 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenc/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 15) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:906 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:906-913 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3632-3639 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:2644-2651 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:426-433 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:690-697 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1344-1351 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4448-4455 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1495-1502 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2921-2928 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:2058-2065 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:2118-2125 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3626-3633 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3638-3645 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3656-3663 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3668-3675 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 8) · ×2
  • Duplicated block (8 lines × 8) crates/libs/windows/src/Windows/Win32/amsi/mod.rs:312 — crates/libs/windows/src/Windows/Win32/amsi/mod.rs:312-319 | crates/libs/windows/src/Windows/Win32/amsi/mod.rs:443-450 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:453-460 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:801-808 | crates/libs/windows/src/Windows/Win32/certpol/mod.rs:255-262 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:655-662 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:73-80 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1002-1009 — `crates/libs/windows/src/Windows/Win32/certcli/mod.rs` and `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 67 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (8 lines × 8) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4305 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4305-4314 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4685-4694 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4895-4904 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5045-5052 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5274-5283 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5548-5557 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6654-6663 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:802-809 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5 lines × 99) · ×2
  • Duplicated block (5 lines × 99) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:83 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:83-87 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:145-149 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:207-211 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:269-273 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:342-346 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:434-438 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:488-492 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:543-547 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:595-599 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:694-698 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:760-764 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:821-825 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:887-891 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:949-953 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:996-1000 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1062-1066 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1128-1132 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1203-1207 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1258-1262 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1341-1345 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1432-1436 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1494-1498 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1557-1561 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1626-1630 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1689-1693 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1853-1857 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1928-1932 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1999-2003 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2069-2073 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2155-2159 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2241-2245 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2338-2342 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2455-2459 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2605-2609 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2678-2682 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2762-2766 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2850-2854 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2934-2938 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3016-3020 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3141-3145 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3258-3262 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3459-3463 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3550-3554 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3680-3684 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3797-3801 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3867-3871 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3951-3955 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4040-4044 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4118-4122 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4208-4212 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4302-4306 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4375-4379 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4469-4473 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4598-4602 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4682-4686 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4833-4837 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4917-4921 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5006-5010 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5094-5098 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5180-5184 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5250-5254 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5339-5343 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5407-5411 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5479-5483 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5551-5555 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5627-5631 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5705-5709 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5781-5785 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5876-5880 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5954-5958 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6032-6036 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6178-6182 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6269-6273 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6359-6363 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6454-6458 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6533-6537 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6609-6613 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6697-6701 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6807-6811 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6886-6890 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6964-6968 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7053-7057 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7107-7111 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7219-7223 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7273-7277 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7319-7323 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7366-7370 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7413-7417 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7497-7501 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7589-7593 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7643-7647 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7726-7730 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7817-7821 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7896-7900 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7964-7968 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8011-8015 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8066-8070 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8125-8129 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8180-8184 — all 99 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 99) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:90 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:90-94 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:152-156 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:214-218 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:276-280 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:349-353 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:441-445 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:495-499 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:550-554 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:602-606 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:701-705 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:767-771 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:828-832 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:894-898 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:956-960 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1003-1007 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1069-1073 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1135-1139 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1210-1214 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1265-1269 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1348-1352 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1439-1443 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1501-1505 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1564-1568 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1633-1637 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1696-1700 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1860-1864 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1935-1939 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2006-2010 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2076-2080 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2162-2166 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2248-2252 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2345-2349 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2462-2466 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2612-2616 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2685-2689 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2769-2773 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2857-2861 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2941-2945 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3023-3027 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3148-3152 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3265-3269 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3466-3470 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3557-3561 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3687-3691 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3804-3808 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3874-3878 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3958-3962 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4047-4051 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4125-4129 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4215-4219 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4309-4313 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4382-4386 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4476-4480 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4605-4609 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4689-4693 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4840-4844 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4924-4928 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5013-5017 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5101-5105 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5187-5191 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5257-5261 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5346-5350 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5414-5418 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5486-5490 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5558-5562 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5634-5638 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5712-5716 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5788-5792 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5883-5887 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5961-5965 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6039-6043 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6185-6189 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6276-6280 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6366-6370 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6461-6465 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6540-6544 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6616-6620 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6704-6708 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6814-6818 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6893-6897 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6971-6975 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7060-7064 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7114-7118 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7226-7230 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7280-7284 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7326-7330 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7373-7377 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7420-7424 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7504-7508 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7596-7600 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7650-7654 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7733-7737 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7824-7828 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7903-7907 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7971-7975 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8018-8022 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8073-8077 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8132-8136 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8187-8191 — all 99 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 49) · ×2
  • Duplicated block (5 lines × 49) crates/libs/windows/src/Windows/Gaming/UI/mod.rs:227 — crates/libs/windows/src/Windows/Gaming/UI/mod.rs:227-231 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:588-592 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1240-1244 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1061-1065 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2239-2243 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3155-3159 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1268-1272 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1342-1346 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1416-1420 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1490-1494 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1575-1579 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1764-1768 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1834-1838 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1901-1905 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1965-1969 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2035-2039 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2113-2117 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2186-2190 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2264-2268 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2342-2346 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2401-2405 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2479-2483 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2557-2561 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2636-2640 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2703-2707 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2790-2794 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2878-2882 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2952-2956 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3027-3031 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3108-3112 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3183-3187 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3258-3262 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3351-3355 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3424-3428 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3616-3620 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3686-3690 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3745-3749 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3853-3857 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3941-3945 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4037-4041 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4103-4107 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4182-4186 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4249-4253 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4319-4323 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4392-4396 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4948-4952 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5015-5019 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5086-5090 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5153-5157 — `crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (5 lines × 49) crates/libs/windows/src/Windows/Gaming/UI/mod.rs:234 — crates/libs/windows/src/Windows/Gaming/UI/mod.rs:234-238 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:595-599 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1247-1251 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1068-1072 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2246-2250 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3162-3166 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1275-1279 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1349-1353 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1423-1427 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1497-1501 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1582-1586 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1771-1775 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1841-1845 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1908-1912 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1972-1976 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2042-2046 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2120-2124 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2193-2197 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2271-2275 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2349-2353 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2408-2412 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2486-2490 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2564-2568 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2643-2647 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2710-2714 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2797-2801 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2885-2889 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2959-2963 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3034-3038 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3115-3119 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3190-3194 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3265-3269 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3358-3362 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3431-3435 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3623-3627 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3693-3697 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3752-3756 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3860-3864 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3948-3952 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4044-4048 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4110-4114 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4189-4193 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4256-4260 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4326-4330 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4399-4403 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4955-4959 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5022-5026 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5093-5097 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5160-5164 — `crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs` and `crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5 lines × 26) · ×2
  • Duplicated block (5 lines × 26) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:48 — crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:48-52 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:303-307 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:630-634 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2024-2028 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2334-2338 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2618-2622 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2909-2913 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3349-3353 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3596-3600 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3857-3861 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4214-4218 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4457-4461 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4984-4988 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:5283-5287 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:358-362 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:472-476 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:580-584 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:882-886 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1206-1210 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1449-1453 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1800-1804 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1964-1968 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2241-2245 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2426-2430 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2638-2642 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2793-2797 — before extracting anything, compare `crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs` and `crates/libs/windows/src/Windows/Web/Syndication/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 26) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2445 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2445-2449 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2531-2535 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2761-2765 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2801-2805 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7718-7722 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7758-7762 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7873-7877 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8542-8546 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8767-8771 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8845-8849 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8929-8933 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5033-5037 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5111-5115 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5157-5161 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5686-5690 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5726-5730 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11152-11156 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11332-11336 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11493-11497 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12172-12176 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12473-12477 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12519-12523 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12611-12615 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12752-12756 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14477-14481 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3914-3918 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5 lines × 22) · ×2
  • Duplicated block (5 lines × 22) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1130 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1130-1134 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1783-1787 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1842-1846 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2125-2129 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2937-2941 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:3033-3037 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1682-1686 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2562-2566 | crates/libs/windows/src/Windows/Media/Core/mod.rs:101-105 | crates/libs/windows/src/Windows/Media/Core/mod.rs:183-187 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2206-2210 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6178-6182 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7506-7510 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7639-7643 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:798-802 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:192-196 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:769-773 | crates/libs/windows/src/Windows/Storage/mod.rs:1635-1639 | crates/libs/windows/src/Windows/Storage/mod.rs:2175-2179 | crates/libs/windows/src/Windows/Storage/mod.rs:2816-2820 | crates/libs/windows/src/Windows/Storage/mod.rs:4500-4504 | crates/libs/windows/src/Windows/Storage/mod.rs:4932-4936 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 22) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1137 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1137-1141 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1790-1794 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1849-1853 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:2132-2136 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1886-1890 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1077-1081 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:973-977 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1066-1070 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1159-1163 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1252-1256 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1345-1349 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1490-1494 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1616-1620 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1713-1717 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1799-1803 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1892-1896 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1992-1996 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2085-2089 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2288-2292 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2373-2377 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2466-2470 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2559-2563 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 20) · ×2
  • Duplicated block (5 lines × 20) crates/libs/windows/src/Windows/Data/Json/mod.rs:409 — crates/libs/windows/src/Windows/Data/Json/mod.rs:409-413 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4756-4760 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4887-4891 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:801-805 | crates/libs/windows/src/Windows/Foundation/mod.rs:2294-2298 | crates/libs/windows/src/Windows/Globalization/Collation/mod.rs:65-69 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:957-961 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:72-76 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:279-283 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:468-472 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:657-661 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:858-862 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1468-1472 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1808-1812 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1943-1947 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2151-2155 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2450-2454 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2581-2585 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2925-2929 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3551-3555 — before extracting anything, compare `crates/libs/windows/src/Windows/Data/Json/mod.rs` and `crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 20) crates/libs/windows/src/Windows/Data/Json/mod.rs:433 — crates/libs/windows/src/Windows/Data/Json/mod.rs:433-437 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4773-4777 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4904-4908 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:818-822 | crates/libs/windows/src/Windows/Foundation/mod.rs:2311-2315 | crates/libs/windows/src/Windows/Globalization/Collation/mod.rs:82-86 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:981-985 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:96-100 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:303-307 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:492-496 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:681-685 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:882-886 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1492-1496 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1832-1836 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1967-1971 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2175-2179 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2474-2478 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2605-2609 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2949-2953 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3575-3579 — before extracting anything, compare `crates/libs/windows/src/Windows/Data/Json/mod.rs` and `crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 18) · ×2
  • Duplicated block (5 lines × 18) crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:76 — crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:76-80 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:91-95 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:106-110 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:121-125 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:136-140 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:151-155 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:166-170 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2913-2917 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2928-2932 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2943-2947 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2958-2962 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3126-3130 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3141-3145 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3156-3160 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3171-3175 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3186-3190 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3201-3205 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3216-3220 — there are 18 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 18 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (5 lines × 18) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:366 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:366-370 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:697-701 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2273-2277 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2504-2508 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2841-2845 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3268-3272 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3868-3872 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4301-4305 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4694-4698 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4979-4983 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5351-5355 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5513-5517 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6691-6695 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10195-10199 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10725-10729 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13758-13762 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14079-14083 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14217-14221 — all 18 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 16) · ×2
  • Duplicated block (5 lines × 16) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1424 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1424-1428 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:699-703 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:880-884 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:737-741 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1083-1087 | crates/libs/windows/src/Windows/Data/Json/mod.rs:736-740 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:32-36 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:145-149 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:351-355 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1010-1014 | crates/libs/windows/src/Windows/Storage/mod.rs:310-314 | crates/libs/windows/src/Windows/Storage/mod.rs:479-483 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:214-218 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1212-1216 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3216-3220 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3395-3399 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Data/Json/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 16) crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:962 — crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:962-966 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1055-1059 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1148-1152 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1241-1245 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1334-1338 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1479-1483 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1605-1609 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1702-1706 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1788-1792 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1881-1885 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1981-1985 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2074-2078 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2277-2281 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2362-2366 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2455-2459 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2548-2552 — all 16 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (6 lines × 53) · ×2
  • Duplicated block (6 lines × 53) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:192 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:192-197 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:11-16 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:406-411 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:181-186 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:283-288 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1751-1756 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7180-7185 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:297-302 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1389-1394 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:510-515 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1271-1276 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1338-1343 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3118-3123 | crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:354-359 | crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:1153-1158 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:450-455 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1248-1253 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2917-2922 | crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs:91-96 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:34-39 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:297-302 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:881-886 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:488-493 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1551-1556 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:643-648 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:68-73 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:3078-3083 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:1239-1244 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:88-93 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1671-1676 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1806-1811 | crates/libs/windows/src/Windows/Media/Core/mod.rs:388-393 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:270-275 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5392-5397 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5487-5492 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:263-268 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:256-261 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:19-24 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:592-597 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:1487-1492 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:777-782 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:3091-3096 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:73-78 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:783-788 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:456-461 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1425-1430 | crates/libs/windows/src/Windows/UI/Input/mod.rs:238-243 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:280-285 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:424-429 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3502-3507 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3802-3807 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:425-430 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:1256-1261 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 53) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:227 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:227-232 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:675-680 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3008-3013 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:65-70 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:328-333 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:818-823 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:436-441 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:80-85 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:533-538 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:640-645 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1373-1378 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1417-1422 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1545-1550 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1603-1608 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1710-1715 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1754-1759 | crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:99-104 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:208-213 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:303-308 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:429-434 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:685-690 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:890-895 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1109-1114 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1407-1412 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1553-1558 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1935-1940 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4707-4712 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4972-4977 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5259-5264 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5568-5573 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5805-5810 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6017-6022 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6377-6382 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:889-894 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1251-1256 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1470-1475 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2677-2682 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2823-2828 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2955-2960 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:3033-3038 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:510-515 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1206-1211 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2391-2396 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2804-2809 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4360-4365 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:1236-1241 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:403-408 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2751-2756 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4018-4023 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4051-4056 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4090-4095 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:218-223 | crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs:278-283 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 31) · ×2
  • Duplicated block (6 lines × 31) crates/libs/windows/src/Windows/AI/Actions/mod.rs:799 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:799-804 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:733-738 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:794-799 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:860-865 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:922-927 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1035-1040 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1101-1106 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3008-3013 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3133-3138 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3250-3255 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3374-3379 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3542-3547 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3672-3677 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2837-2842 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:115-120 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1036-1041 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:772-777 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3270-3275 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3302-3307 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3333-3338 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3364-3369 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3488-3493 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3694-3699 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3763-3768 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3833-3838 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2081-2086 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2154-2159 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2232-2237 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2306-2311 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2447-2452 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2525-2530 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 31) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1845 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1845-1850 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1229-1234 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2636-2641 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2382-2387 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2889-2894 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:5578-5583 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2161-2166 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:485-490 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:791-796 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1014-1019 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:376-381 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:107-112 | crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs:315-320 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:347-352 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:467-472 | crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs:13-18 | crates/libs/windows/src/Windows/Services/Store/mod.rs:997-1002 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1174-1179 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:56-61 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:92-97 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:141-146 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:338-343 | crates/libs/windows/src/Windows/System/mod.rs:856-861 | crates/libs/windows/src/Windows/System/mod.rs:916-921 | crates/libs/windows/src/Windows/System/mod.rs:3947-3952 | crates/libs/windows/src/Windows/System/mod.rs:3983-3988 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:212-217 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2495-2500 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2743-2748 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3228-3233 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:1018-1023 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 55 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 33) · ×2
  • Duplicated block (6 lines × 33) crates/libs/windows/src/Windows/AI/Actions/mod.rs:2190 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:2190-2195 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5697-5702 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7447-7452 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:129-134 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3809-3814 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1000-1005 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:209-214 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:746-751 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs:74-79 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:247-252 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2726-2731 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:5120-5125 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1436-1441 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1400-1405 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2687-2692 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:872-877 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:1112-1117 | crates/libs/windows/src/Windows/UI/Text/mod.rs:56-61 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3894-3899 | crates/libs/windows/src/Windows/Web/AtomPub/mod.rs:338-343 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1935-1940 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2385-2390 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2734-2739 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1364-1369 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1386-1391 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1414-1419 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1479-1484 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1513-1518 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1544-1549 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1608-1613 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1708-1713 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1779-1784 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1810-1815 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 33) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:48 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:48-53 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:135-140 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:237-242 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:339-344 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:405-410 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:507-512 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:130-135 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:202-207 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:361-366 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:438-443 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:510-515 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:684-689 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:759-764 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:843-848 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:939-944 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1014-1019 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1185-1190 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1251-1256 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1347-1352 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1423-1428 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:300-305 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:375-380 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:447-452 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:519-524 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:585-590 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:12-17 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:86-91 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:254-259 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:328-333 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:672-677 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:758-763 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:832-837 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:906-911 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 30) · ×2
  • Duplicated block (6 lines × 30) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:382 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:382-387 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2447-2452 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:26-31 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2220-2225 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:12-17 | crates/libs/windows/src/Windows/Devices/Haptics/mod.rs:503-508 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:314-319 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:633-638 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:917-922 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:480-485 | crates/libs/windows/src/Windows/Media/AppRecording/mod.rs:89-94 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:394-399 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4689-4694 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:830-835 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1182-1187 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1711-1716 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1924-1929 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2326-2331 | crates/libs/windows/src/Windows/Media/Core/mod.rs:1696-1701 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4390-4395 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4690-4695 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:589-594 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:807-812 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:639-644 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:1193-1198 | crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs:196-201 | crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs:408-413 | crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs:555-560 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1622-1627 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1607-1612 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 55 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 30) crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:1177 — crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:1177-1182 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2685-2690 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1316-1321 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1373-1378 | crates/libs/windows/src/Windows/ApplicationModel/Preview/mod.rs:78-83 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:208-213 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:186-191 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:323-328 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1483-1488 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1752-1757 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2308-2313 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2556-2561 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:833-838 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1156-1161 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:231-236 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:313-318 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:1251-1256 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1643-1648 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:612-617 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:685-690 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1886-1891 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2164-2169 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3483-3488 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:63-68 | crates/libs/windows/src/Windows/Media/mod.rs:2094-2099 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:320-325 | crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs:109-114 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:80-85 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3533-3538 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:1250-1255 — `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 29) · ×2
  • Duplicated block (6 lines × 29) crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:42 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:42-47 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:231-236 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:333-338 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:399-404 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:501-506 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:196-201 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:289-294 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:355-360 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:354-359 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:432-437 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:504-509 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:576-581 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:678-683 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:837-842 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:933-938 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1107-1112 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1179-1184 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1245-1250 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1341-1346 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:441-446 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:513-518 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:579-584 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:6-11 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:80-85 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:322-327 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:666-671 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:752-757 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:826-831 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:900-905 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 29) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:455 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:455-460 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1498-1503 | crates/libs/windows/src/Windows/Globalization/mod.rs:68-73 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1870-1875 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:60-65 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:456-461 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:613-618 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:774-779 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:842-847 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2599-2604 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:4018-4023 | REDACTED:3175-3180 | REDACTED:3275-3280 | REDACTED:3375-3380 | REDACTED:3475-3480 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:296-301 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:465-470 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:679-684 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:847-852 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:280-285 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:365-370 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5399-5404 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:52-57 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10597-10602 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:505-510 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:611-616 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:112-117 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1568-1573 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:402-407 — `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` and `crates/libs/windows/src/Windows/Win32/comcat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 17) · ×2
  • Duplicated block (6 lines × 17) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:17 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:17-22 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2092-2097 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2561-2566 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3903-3908 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2309-2314 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:824-829 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:6-11 | crates/libs/windows/src/Windows/Devices/Power/mod.rs:234-239 | crates/libs/windows/src/Windows/Media/Control/mod.rs:523-528 | crates/libs/windows/src/Windows/Media/Core/mod.rs:1687-1692 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2510-2515 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4991-4996 | crates/libs/windows/src/Windows/Media/mod.rs:2523-2528 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:552-557 | crates/libs/windows/src/Windows/UI/Shell/Tasks/mod.rs:130-135 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7125-7130 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7660-7665 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 14 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 17) crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:271 — crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:271-276 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:265-270 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:18-23 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5320-5325 | crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs:470-475 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:15-20 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:54-59 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1450-1455 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1536-1541 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3479-3484 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4402-4407 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4585-4590 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:788-793 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:949-954 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1598-1603 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1671-1676 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:706-711 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs` and `crates/libs/windows/src/Windows/Devices/Spi/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 39) · ×2
  • Duplicated block (6 lines × 39) crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:374 — crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:374-379 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:567-572 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:861-866 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1012-1017 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1184-1189 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:875-880 | crates/libs/windows/src/Windows/Data/Pdf/mod.rs:230-235 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:176-181 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:442-447 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:243-248 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:43-48 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:214-219 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:830-835 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:854-859 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4492-4497 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2064-2069 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:1294-1299 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1826-1831 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3611-3616 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3715-3720 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4667-4672 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:222-227 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3854-3859 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:83-88 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:7-12 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:22-27 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:251-256 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:334-339 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1557-1562 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:620-625 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2159-2164 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2626-2631 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2882-2887 | crates/libs/windows/src/Windows/UI/Core/mod.rs:5219-5224 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1386-1391 | crates/libs/windows/src/Windows/UI/Text/mod.rs:508-513 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:401-406 | crates/libs/windows/src/Windows/Web/Http/mod.rs:499-504 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7100-7105 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs` and `crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 39) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1235 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1235-1240 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1523-1528 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:371-376 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:702-707 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2278-2283 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2509-2514 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2846-2851 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3273-3278 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3873-3878 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4306-4311 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4699-4704 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4984-4989 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5356-5361 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5518-5523 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6696-6701 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10200-10205 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10730-10735 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13763-13768 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14084-14089 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14222-14227 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1286-1291 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3316-3321 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3758-3763 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4899-4904 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5079-5084 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5678-5683 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6591-6596 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6858-6863 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7783-7788 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7961-7966 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8060-8065 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10567-10572 | crates/libs/windows/src/Windows/Win32/control/mod.rs:16-21 | crates/libs/windows/src/Windows/Win32/control/mod.rs:118-123 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3021-3026 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1085-1090 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3454-3459 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5470-5475 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9404-9409 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenroll/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 155 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D1 · Cyclomatic Complexity · Schema · ×1
  • Schema::resolve (cyclomatic 131) crates/tools/reactor/src/schema.rs:768 — Schema::resolve has cyclomatic complexity 131 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IUIAutomationElement_Vtbl · ×1
  • IUIAutomationElement_Vtbl::new (cyclomatic 80) crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs:3625 — IUIAutomationElement_Vtbl::new has cyclomatic complexity 80 (threshold 15). Most of this is not in the body itself: 1 of the 80 points is its own statement and the rest belongs to 79 function items inside it that branch (GetRuntimeId, FindFirst, FindAll, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · File · ×1
  • File::new (cyclomatic 56) crates/libs/metadata/src/reader/file.rs:15 — File::new has cyclomatic complexity 56 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · IADsUser_Vtbl · ×1
  • IADsUser_Vtbl::new (cyclomatic 49) crates/libs/windows/src/Windows/Win32/iads/mod.rs:12070 — IADsUser_Vtbl::new has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 1 of the 49 points is its own statement and the rest belongs to 48 function items inside it that branch (BadLoginAddress, BadLoginCount, LastLogin, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugControl6_Vtbl · ×1
  • IDebugControl6_Vtbl::new (cyclomatic 46) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:27822 — IDebugControl6_Vtbl::new has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to 45 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugControl7_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugControl7_Vtbl · ×1
  • IDebugControl7_Vtbl::new (cyclomatic 46) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:30901 — IDebugControl7_Vtbl::new has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to 45 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugControl6_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · Interface · ×1
  • Interface::write (cyclomatic 45) crates/libs/bindgen/src/types/interface.rs:207 — Interface::write has cyclomatic complexity 45 (threshold 15). Of this number, 43 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IDebugControl5_Vtbl · ×1
  • IDebugControl5_Vtbl::new (cyclomatic 45) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:24772 — IDebugControl5_Vtbl::new has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 44 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugControl4_Vtbl · ×1
  • IDebugControl4_Vtbl::new (cyclomatic 44) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:21784 — IDebugControl4_Vtbl::new has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 1 of the 44 points is its own statement and the rest belongs to 43 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IUIAutomation_Vtbl · ×1
  • IUIAutomation_Vtbl::new (cyclomatic 44) crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs:613 — IUIAutomation_Vtbl::new has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 1 of the 44 points is its own statement and the rest belongs to 43 function items inside it that branch (CompareElements, CompareRuntimeIds, GetRootElement, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IUpdate_Vtbl · ×1
  • IUpdate_Vtbl::new (cyclomatic 43) crates/libs/windows/src/Windows/Win32/wuapi/mod.rs:3676 — IUpdate_Vtbl::new has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 1 of the 43 points is its own statement and the rest belongs to 42 function items inside it that branch (Title, AutoSelectOnWebSites, BundledUpdates, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IXpsOMObjectFactory_Vtbl · ×1
  • IXpsOMObjectFactory_Vtbl::new (cyclomatic 38) crates/libs/windows/src/Windows/Win32/xps/mod.rs:5322 — IXpsOMObjectFactory_Vtbl::new has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 37 function items inside it that branch (CreatePackage, CreatePackageFromFile, CreatePackageFromStream, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugControl3_Vtbl · ×1
  • IDebugControl3_Vtbl::new (cyclomatic 37) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19249 — IDebugControl3_Vtbl::new has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to 36 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CppInterface · ×1
  • CppInterface::write (cyclomatic 36) crates/libs/bindgen/src/types/cpp_interface.rs:54 — CppInterface::write has cyclomatic complexity 36 (threshold 15). Of this number, 34 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Records · ×1
  • Records::into_stream (cyclomatic 36) crates/libs/metadata/src/writer/file/rec.rs:197 — Records::into_stream has cyclomatic complexity 36 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · IDataCollectorSet_Vtbl · ×1
  • IDataCollectorSet_Vtbl::new (cyclomatic 35) crates/libs/windows/src/Windows/Win32/pla/mod.rs:2125 — IDataCollectorSet_Vtbl::new has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 34 function items inside it that branch (DataCollectors, Duration, Description, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Filter · ×1
  • Filter::register_member (cyclomatic 34) crates/libs/bindgen/src/filter.rs:389 — Filter::register_member has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CppConst · ×1
  • CppConst::write (cyclomatic 33) crates/libs/bindgen/src/types/cpp_const.rs:52 — CppConst::write has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IFileSystemImage_Vtbl · ×1
  • IFileSystemImage_Vtbl::new (cyclomatic 33) crates/libs/windows/src/Windows/Win32/imapi2fs/mod.rs:920 — IFileSystemImage_Vtbl::new has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 32 function items inside it that branch (Root, SessionStartBlock, FreeMediaBlocks, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDirect3DDevice9_Vtbl · ×1
  • IDirect3DDevice9_Vtbl::new (cyclomatic 32) crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3875 — IDirect3DDevice9_Vtbl::new has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 31 function items inside it that branch (GetDirect3D, GetDisplayMode, GetCreationParameters, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugSystemObjects3_Vtbl · ×1
  • IDebugSystemObjects3_Vtbl::new (cyclomatic 32) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47790 — IDebugSystemObjects3_Vtbl::new has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 31 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugSystemObjects4_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugSystemObjects4_Vtbl · ×1
  • IDebugSystemObjects4_Vtbl::new (cyclomatic 32) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48780 — IDebugSystemObjects4_Vtbl::new has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 31 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugSystemObjects3_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IXMLDOMNode_Vtbl · ×1
  • IXMLDOMNode_Vtbl::new (cyclomatic 32) crates/libs/windows/src/Windows/Win32/msxml/mod.rs:9425 — IXMLDOMNode_Vtbl::new has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 31 function items inside it that branch (nodeName, nodeValue, nodeType, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Writer · ×1
  • Writer::write (cyclomatic 31) crates/libs/rdl/src/writer/mod.rs:122 — Writer::write has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IDebugControl2_Vtbl · ×1
  • IDebugControl2_Vtbl::new (cyclomatic 31) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17334 — IDebugControl2_Vtbl::new has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 30 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Blob · ×1
  • Blob::read_type_code (cyclomatic 30) crates/libs/metadata/src/reader/blob.rs:150 — Blob::read_type_code has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · IWebViewControl_Vtbl · ×1
  • IWebViewControl_Vtbl::new (cyclomatic 30) crates/libs/windows/src/Windows/Web/UI/mod.rs:444 — IWebViewControl_Vtbl::new has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 29 function items inside it that branch (Source, DocumentTitle, CanGoBack, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IInkPicture_Vtbl · ×1
  • IInkPicture_Vtbl::new (cyclomatic 30) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:4982 — IInkPicture_Vtbl::new has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 29 function items inside it that branch (hWnd, DefaultDrawingAttributes, Renderer, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Class · ×1
  • Class::write (cyclomatic 29) crates/libs/bindgen/src/types/class.rs:17 — Class::write has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ICoreWindow_Vtbl · ×1
  • ICoreWindow_Vtbl::new (cyclomatic 29) crates/libs/windows/src/Windows/UI/Core/mod.rs:3745 — ICoreWindow_Vtbl::new has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 28 function items inside it that branch (AutomationHostProvider, Bounds, CustomProperties, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IX509PrivateKey_Vtbl · ×1
  • IX509PrivateKey_Vtbl::new (cyclomatic 29) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15087 — IX509PrivateKey_Vtbl::new has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 28 function items inside it that branch (Export, ExportPublicKey, ContainerName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITextFont_Vtbl · ×1
  • ITextFont_Vtbl::new (cyclomatic 29) crates/libs/windows/src/Windows/Win32/tom/mod.rs:2042 — ITextFont_Vtbl::new has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 28 function items inside it that branch (GetDuplicate, CanChange, IsEqual, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · MetadataResolver · ×1
  • MetadataResolver::load (cyclomatic 29) crates/tools/reactor/src/metadata.rs:95 — MetadataResolver::load has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TypeClosure · ×1
  • TypeClosure::build (cyclomatic 28) crates/libs/bindgen/src/type_closure.rs:18 — TypeClosure::build has cyclomatic complexity 28 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · windows_window · ×1
  • windows_window::window::wndproc (cyclomatic 28) crates/libs/window/src/window.rs:393 — windows_window::window::wndproc has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ITextCharacterFormat_Vtbl · ×1
  • ITextCharacterFormat_Vtbl::new (cyclomatic 27) crates/libs/windows/src/Windows/UI/Text/mod.rs:667 — ITextCharacterFormat_Vtbl::new has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 26 function items inside it that branch (AllCaps, BackgroundColor, Bold, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugControl_Vtbl · ×1
  • IDebugControl_Vtbl::new (cyclomatic 27) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15620 — IDebugControl_Vtbl::new has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 26 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugSystemObjects2_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugSystemObjects2_Vtbl · ×1
  • IDebugSystemObjects2_Vtbl::new (cyclomatic 27) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46911 — IDebugSystemObjects2_Vtbl::new has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 26 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugControl_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IInkOverlay_Vtbl · ×1
  • IInkOverlay_Vtbl::new (cyclomatic 27) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:3888 — IInkOverlay_Vtbl::new has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 26 function items inside it that branch (hWnd, Enabled, DefaultDrawingAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITextDocument2_Vtbl · ×1
  • ITextDocument2_Vtbl::new (cyclomatic 26) crates/libs/windows/src/Windows/Win32/tom/mod.rs:746 — ITextDocument2_Vtbl::new has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 25 function items inside it that branch (GetCaretType, GetDisplays, GetDocumentFont, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IWICImagingFactory_Vtbl · ×1
  • IWICImagingFactory_Vtbl::new (cyclomatic 26) crates/libs/windows/src/Windows/Win32/wincodec/mod.rs:4010 — IWICImagingFactory_Vtbl::new has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 25 function items inside it that branch (CreateDecoderFromFilename, CreateDecoderFromStream, CreateDecoderFromFileHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Config · ×1
  • Config::write_package (cyclomatic 25) crates/libs/bindgen/src/package_writer.rs:101 — Config::write_package has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ITextParagraphFormat_Vtbl · ×1
  • ITextParagraphFormat_Vtbl::new (cyclomatic 25) crates/libs/windows/src/Windows/UI/Text/mod.rs:2086 — ITextParagraphFormat_Vtbl::new has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 24 function items inside it that branch (Alignment, FirstLineIndent, KeepTogether, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugSymbols5_Vtbl · ×1
  • IDebugSymbols5_Vtbl::new (cyclomatic 25) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44748 — IDebugSymbols5_Vtbl::new has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 24 function items inside it that branch (GetSymbolOptions, GetOffsetByName, GetOffsetByLine, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IInkStrokeDisp_Vtbl · ×1
  • IInkStrokeDisp_Vtbl::new (cyclomatic 25) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:8256 — IInkStrokeDisp_Vtbl::new has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 24 function items inside it that branch (ID, BezierPoints, DrawingAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITextPara_Vtbl · ×1
  • ITextPara_Vtbl::new (cyclomatic 25) crates/libs/windows/src/Windows/Win32/tom/mod.rs:3741 — ITextPara_Vtbl::new has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 24 function items inside it that branch (GetDuplicate, CanChange, IsEqual, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IVssComponent_Vtbl · ×1
  • IVssComponent_Vtbl::new (cyclomatic 25) crates/libs/windows/src/Windows/Win32/vswriter/mod.rs:346 — IVssComponent_Vtbl::new has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 24 function items inside it that branch (GetLogicalPath, GetComponentType, GetComponentName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CppStruct · ×1
  • CppStruct::write_with_cfg (cyclomatic 24) crates/libs/bindgen/src/types/cpp_struct.rs:169 — CppStruct::write_with_cfg has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · IImageScannerSourceConfiguration_Vtbl · ×1
  • IImageScannerSourceConfiguration_Vtbl::new (cyclomatic 24) crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:422 — IImageScannerSourceConfiguration_Vtbl::new has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 23 function items inside it that branch (MinScanArea, MaxScanArea, SelectedScanRegion, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugSymbols3_Vtbl · ×1
  • IDebugSymbols3_Vtbl::new (cyclomatic 24) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40192 — IDebugSymbols3_Vtbl::new has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 23 function items inside it that branch (GetSymbolOptions, GetOffsetByName, GetOffsetByLine, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 2 other methods here (IDebugSymbols4_Vtbl::new, IDebugSystemObjects_Vtbl::new) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugSymbols4_Vtbl · ×1
  • IDebugSymbols4_Vtbl::new (cyclomatic 24) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42437 — IDebugSymbols4_Vtbl::new has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 23 function items inside it that branch (GetSymbolOptions, GetOffsetByName, GetOffsetByLine, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 2 other methods here (IDebugSymbols3_Vtbl::new, IDebugSystemObjects_Vtbl::new) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugSystemObjects_Vtbl · ×1
  • IDebugSystemObjects_Vtbl::new (cyclomatic 24) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46177 — IDebugSystemObjects_Vtbl::new has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 23 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 2 other methods here (IDebugSymbols3_Vtbl::new, IDebugSymbols4_Vtbl::new) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IXMLDOMDocument_Vtbl · ×1
  • IXMLDOMDocument_Vtbl::new (cyclomatic 24) crates/libs/windows/src/Windows/Win32/msxml/mod.rs:7660 — IXMLDOMDocument_Vtbl::new has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 23 function items inside it that branch (doctype, implementation, documentElement, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Merger · ×1
  • Merger::merge (cyclomatic 23) crates/libs/metadata/src/merge/mod.rs:98 — Merger::merge has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IDataReader_Vtbl · ×1
  • IDataReader_Vtbl::new (cyclomatic 23) crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1021 — IDataReader_Vtbl::new has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 22 function items inside it that branch (UnconsumedBufferLength, UnicodeEncoding, ByteOrder, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDiscFormat2Data_Vtbl · ×1
  • IDiscFormat2Data_Vtbl::new (cyclomatic 23) crates/libs/windows/src/Windows/Win32/imapi2/mod.rs:1140 — IDiscFormat2Data_Vtbl::new has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 22 function items inside it that branch (Recorder, BufferUnderrunFreeDisabled, PostgapAlreadyInImage, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITextFont2_Vtbl · ×1
  • ITextFont2_Vtbl::new (cyclomatic 23) crates/libs/windows/src/Windows/Win32/tom/mod.rs:2933 — ITextFont2_Vtbl::new has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 22 function items inside it that branch (GetCount, GetAutoLigatures, GetAutospaceAlpha, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IUri_Vtbl · ×1
  • IUri_Vtbl::new (cyclomatic 23) crates/libs/windows/src/Windows/Win32/urlmon/mod.rs:4213 — IUri_Vtbl::new has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 22 function items inside it that branch (HasProperty, GetAbsoluteUri, GetAuthority, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDebugClient5_Vtbl · ×1
  • IDebugClient5_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7559 — IDebugClient5_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient6_Vtbl::new, IDebugClient7_Vtbl::new, IDebugClient8_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugClient6_Vtbl · ×1
  • IDebugClient6_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9142 — IDebugClient6_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient7_Vtbl::new, IDebugClient8_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugClient7_Vtbl · ×1
  • IDebugClient7_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10737 — IDebugClient7_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient6_Vtbl::new, IDebugClient8_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugClient8_Vtbl · ×1
  • IDebugClient8_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12347 — IDebugClient8_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient6_Vtbl::new, IDebugClient7_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDebugClient9_Vtbl · ×1
  • IDebugClient9_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13980 — IDebugClient9_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient6_Vtbl::new, IDebugClient7_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IDCompositionDevice_Vtbl · ×1
  • IDCompositionDevice_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1353 — IDCompositionDevice_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (CreateTargetForHwnd, CreateVisual, CreateSurface, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITraceDataCollector_Vtbl · ×1
  • ITraceDataCollector_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/pla/mod.rs:4635 — ITraceDataCollector_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (BufferSize, BuffersLost, BuffersWritten, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDvdControl2_Vtbl · ×1
  • IDvdControl2_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/strmif/mod.rs:8079 — IDvdControl2_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (PlayTitle, PlayChapterInTitle, PlayAtTimeInTitle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITextRow_Vtbl · ×1
  • ITextRow_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/tom/mod.rs:6568 — ITextRow_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (GetAlignment, GetCellCount, GetCellCountCache, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IUIAutomationLegacyIAccessiblePattern_Vtbl · ×1
  • IUIAutomationLegacyIAccessiblePattern_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs:6718 — IUIAutomationLegacyIAccessiblePattern_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (CurrentChildId, CurrentName, CurrentValue, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IWMPNetwork_Vtbl · ×1
  • IWMPNetwork_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/wmp/mod.rs:5470 — IWMPNetwork_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (bandWidth, recoveredPackets, sourceProtocol, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IXpsOMPath_Vtbl · ×1
  • IXpsOMPath_Vtbl::new (cyclomatic 22) crates/libs/windows/src/Windows/Win32/xps/mod.rs:7692 — IXpsOMPath_Vtbl::new has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 21 function items inside it that branch (GetGeometry, GetGeometryLocal, GetGeometryLookup, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IXmlNode_Vtbl · ×1
  • IXmlNode_Vtbl::new (cyclomatic 21) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1379 — IXmlNode_Vtbl::new has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 20 function items inside it that branch (NodeValue, NodeType, NodeName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITaskSettings_Vtbl · ×1
  • ITaskSettings_Vtbl::new (cyclomatic 21) REDACTED:5831 — ITaskSettings_Vtbl::new has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 20 function items inside it that branch (AllowDemandStart, RestartInterval, RestartCount, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ISWbemDateTime_Vtbl · ×1
  • ISWbemDateTime_Vtbl::new (cyclomatic 21) crates/libs/windows/src/Windows/Win32/wbemdisp/mod.rs:374 — ISWbemDateTime_Vtbl::new has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 20 function items inside it that branch (Value, Year, YearSpecified, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IWSManEx_Vtbl · ×1
  • IWSManEx_Vtbl::new (cyclomatic 21) crates/libs/windows/src/Windows/Win32/wsmandisp/mod.rs:757 — IWSManEx_Vtbl::new has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 20 function items inside it that branch (CreateResourceLocator, SessionFlagUTF8, SessionFlagCredUsernamePassword, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · windows_strings · ×1
  • windows_strings::literals::decode_utf8_char (cyclomatic 20) crates/libs/strings/src/literals.rs:77 — windows_strings::literals::decode_utf8_char has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · windows_sys · ×1
  • windows_sys::core::literals::decode_utf8_char (cyclomatic 20) crates/libs/sys/src/core/literals.rs:42 — windows_sys::core::literals::decode_utf8_char has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IX509CertificateRequestPkcs10_Vtbl · ×1
  • IX509CertificateRequestPkcs10_Vtbl::new (cyclomatic 20) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:8514 — IX509CertificateRequestPkcs10_Vtbl::new has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 19 function items inside it that branch (IsSmartCard, TemplateObjectId, PublicKey, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IFsrmClassificationManager_Vtbl · ×1
  • IFsrmClassificationManager_Vtbl::new (cyclomatic 20) crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:304 — IFsrmClassificationManager_Vtbl::new has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 19 function items inside it that branch (ClassificationReportFormats, Logging, ClassificationReportMailTo, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IFsrmPropertyBag_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IFsrmPropertyBag_Vtbl · ×1
  • IFsrmPropertyBag_Vtbl::new (cyclomatic 20) crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2026 — IFsrmPropertyBag_Vtbl::new has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 19 function items inside it that branch (Name, RelativePath, VolumeName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IFsrmClassificationManager_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IInkCollector_Vtbl · ×1
  • IInkCollector_Vtbl::new (cyclomatic 20) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:903 — IInkCollector_Vtbl::new has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 19 function items inside it that branch (hWnd, Enabled, DefaultDrawingAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IInkDisp_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IInkDisp_Vtbl · ×1
  • IInkDisp_Vtbl::new (cyclomatic 20) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:2221 — IInkDisp_Vtbl::new has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 19 function items inside it that branch (Strokes, ExtendedProperties, Dirty, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IInkCollector_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · ISpeechVoice_Vtbl · ×1
  • ISpeechVoice_Vtbl::new (cyclomatic 20) crates/libs/windows/src/Windows/Win32/sapi/mod.rs:14062 — ISpeechVoice_Vtbl::new has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 19 function items inside it that branch (Status, Voice, AudioOutput, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Bindgen · ×1
  • Bindgen::write (cyclomatic 19) crates/libs/bindgen/src/lib.rs:454 — Bindgen::write has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Layout · ×1
  • Layout::to_module (cyclomatic 19) crates/libs/rdl/src/writer/layout.rs:81 — Layout::to_module has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · IX509EnrollmentPolicyServer_Vtbl · ×1
  • IX509EnrollmentPolicyServer_Vtbl::new (cyclomatic 19) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12055 — IX509EnrollmentPolicyServer_Vtbl::new has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 18 function items inside it that branch (GetTemplates, GetCAsForTemplate, GetCAs, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDCompositionDevice2_Vtbl · ×1
  • IDCompositionDevice2_Vtbl::new (cyclomatic 19) crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1846 — IDCompositionDevice2_Vtbl::new has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 18 function items inside it that branch (CreateVisual, CreateSurfaceFactory, CreateSurface, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · INetFwRule_Vtbl · ×1
  • INetFwRule_Vtbl::new (cyclomatic 19) crates/libs/windows/src/Windows/Win32/netfw/mod.rs:3209 — INetFwRule_Vtbl::new has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 18 function items inside it that branch (Name, Description, ApplicationName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ISpeechRecognizer_Vtbl · ×1
  • ISpeechRecognizer_Vtbl::new (cyclomatic 19) crates/libs/windows/src/Windows/Win32/sapi/mod.rs:13073 — ISpeechRecognizer_Vtbl::new has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 18 function items inside it that branch (Recognizer, AllowAudioInputFormatChangesOnNextSet, AudioInput, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IXpsOMCoreProperties_Vtbl · ×1
  • IXpsOMCoreProperties_Vtbl::new (cyclomatic 19) crates/libs/windows/src/Windows/Win32/xps/mod.rs:882 — IXpsOMCoreProperties_Vtbl::new has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 18 function items inside it that branch (GetOwner, GetCategory, GetContentStatus, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · WebViewWindowBuilder · ×1
  • WebViewWindowBuilder::create_with_status (cyclomatic 18) crates/libs/webview/src/window.rs:141 — WebViewWindowBuilder::create_with_status has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · IStorageFolderQueryOperations_Vtbl · ×1
  • IStorageFolderQueryOperations_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Storage/Search/mod.rs:724 — IStorageFolderQueryOperations_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (GetIndexedStateAsync, CreateFileQueryOverloadDefault, CreateFileQuery, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IX509CertificateRevocationList_Vtbl · ×1
  • IX509CertificateRevocationList_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:9851 — IX509CertificateRevocationList_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (Issuer, ThisUpdate, NextUpdate, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IADsComputer_Vtbl · ×1
  • IADsComputer_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Win32/iads/mod.rs:3035 — IADsComputer_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (ComputerID, Site, Description, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ISchemaType_Vtbl · ×1
  • ISchemaType_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Win32/msxml/mod.rs:4889 — ISchemaType_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (baseTypes, r#final, variety, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDvdInfo2_Vtbl · ×1
  • IDvdInfo2_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Win32/strmif/mod.rs:9289 — IDvdInfo2_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (GetCurrentDomain, GetCurrentLocation, GetCurrentUOPS, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ITextRange2_Vtbl · ×1
  • ITextRange2_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Win32/tom/mod.rs:5854 — ITextRange2_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (GetCch, GetCells, GetColumn, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ISWbemObject_Vtbl · ×1
  • ISWbemObject_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Win32/wbemdisp/mod.rs:1763 — ISWbemObject_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (Put_, Instances_, Subclasses_, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IXpsOMGlyphs_Vtbl · ×1
  • IXpsOMGlyphs_Vtbl::new (cyclomatic 18) crates/libs/windows/src/Windows/Win32/xps/mod.rs:3135 — IXpsOMGlyphs_Vtbl::new has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 17 function items inside it that branch (GetUnicodeString, GetGlyphIndexCount, GetGlyphMappingCount, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · App · ×1
  • App::run_host (cyclomatic 17) crates/libs/reactor/src/app/mod.rs:1020 — App::run_host has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ComponentStore · ×1
  • ComponentStore::drain (cyclomatic 17) crates/libs/reactor/src/core/component/mod.rs:1912 — ComponentStore::drain has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IX509CertificateRequestCmc_Vtbl · ×1
  • IX509CertificateRequestCmc_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7853 — IX509CertificateRequestCmc_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (TemplateObjectId, NullSigned, CryptAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IVideoWindow_Vtbl · ×1
  • IVideoWindow_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/control/mod.rs:2599 — IVideoWindow_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (Caption, WindowStyle, WindowStyleEx, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDWriteFactory_Vtbl · ×1
  • IDWriteFactory_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2042 — IDWriteFactory_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (CreateCustomFontCollection, CreateFontFileReference, CreateCustomFontFileReference, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IADsClass_Vtbl · ×1
  • IADsClass_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/iads/mod.rs:2364 — IADsClass_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (PrimaryInterface, CLSID, OID, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDiscFormat2TrackAtOnce_Vtbl · ×1
  • IDiscFormat2TrackAtOnce_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/imapi2/mod.rs:2628 — IDiscFormat2TrackAtOnce_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (Recorder, BufferUnderrunFreeDisabled, NumberOfExistingTracks, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IAccessible_Vtbl · ×1
  • IAccessible_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/oleacc/mod.rs:737 — IAccessible_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (accParent, accChildCount, accChild, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ISpeechPhraseInfo_Vtbl · ×1
  • ISpeechPhraseInfo_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/sapi/mod.rs:10162 — ISpeechPhraseInfo_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (LanguageId, GrammarId, StartTime, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IVssBackupComponents_Vtbl · ×1
  • IVssBackupComponents_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/vsbackup/mod.rs:563 — IVssBackupComponents_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (GetWriterComponentsCount, GetWriterComponents, GatherWriterMetadata, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IWMPCore_Vtbl · ×1
  • IWMPCore_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/wmp/mod.rs:1593 — IWMPCore_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (URL, openState, playState, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IWMPMedia_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · IWMPMedia_Vtbl · ×1
  • IWMPMedia_Vtbl::new (cyclomatic 17) crates/libs/windows/src/Windows/Win32/wmp/mod.rs:4246 — IWMPMedia_Vtbl::new has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function items inside it that branch (isIdentical, sourceURL, name, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IWMPCore_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · TimeSpan · ×1
  • TimeSpan::fmt (cyclomatic 16) crates/libs/time/src/timespan.rs:300 — TimeSpan::fmt has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · IOCSPCAConfiguration_Vtbl · ×1
  • IOCSPCAConfiguration_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:940 — IOCSPCAConfiguration_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (Identifier, CACertificate, HashAlgorithm, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ICspInformation_Vtbl · ×1
  • ICspInformation_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3634 — ICspInformation_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (CspAlgorithms, HasHardwareRandomNumberGenerator, IsHardwareDevice, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ID2D1DeviceContext_Vtbl · ×1
  • ID2D1DeviceContext_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4000 — ID2D1DeviceContext_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (CreateBitmap, CreateBitmapFromWicBitmap, CreateColorContext, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IDataCollector_Vtbl · ×1
  • IDataCollector_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/pla/mod.rs:1179 — IDataCollector_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (DataCollectorSet, DataCollectorType, FileName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IPortableDeviceServiceCapabilities_Vtbl · ×1
  • IPortableDeviceServiceCapabilities_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/portabledeviceapi/mod.rs:2173 — IPortableDeviceServiceCapabilities_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (GetSupportedMethods, GetSupportedMethodsByFormat, GetMethodAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IPortableDeviceValues_Vtbl · ×1
  • IPortableDeviceValues_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/portabledevicetypes/mod.rs:711 — IPortableDeviceValues_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (GetValue, GetStringValue, GetUnsignedIntegerValue, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IPropertyDescription_Vtbl · ×1
  • IPropertyDescription_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/propsys/mod.rs:1503 — IPropertyDescription_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (GetCanonicalName, GetPropertyType, GetDisplayName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · IUpdateInstaller_Vtbl · ×1
  • IUpdateInstaller_Vtbl::new (cyclomatic 16) crates/libs/windows/src/Windows/Win32/wuapi/mod.rs:6604 — IUpdateInstaller_Vtbl::new has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 15 function items inside it that branch (ClientApplicationID, IsForced, ParentHwnd, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Schema · ×1
  • Schema::resolve (cognitive 275) crates/tools/reactor/src/schema.rs:768 — Schema::resolve has cognitive complexity 275 (threshold 15). Drivers by points: if/else 72 (195 pts), boolean chains 35, match/switch 10 (33 pts), loops 6 (12 pts) (nesting depth added 152). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · Interface · ×1
  • Interface::write (cognitive 114) crates/libs/bindgen/src/types/interface.rs:207 — Interface::write has cognitive complexity 114 (threshold 15). Drivers by points: if/else 33 (77 pts), loops 4 (14 pts), boolean chains 13, match/switch 4 (10 pts) (nesting depth added 60). Of this number, 105 points are the body's own statements and 9 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · CppInterface · ×1
  • CppInterface::write (cognitive 91) crates/libs/bindgen/src/types/cpp_interface.rs:54 — CppInterface::write has cognitive complexity 91 (threshold 15). Drivers by points: if/else 29 (66 pts), match/switch 6 (15 pts), loops 2 (7 pts), boolean chains 3 (nesting depth added 51). Of this number, 82 points are the body's own statements and 9 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · TypeClosure · ×1
  • TypeClosure::build (cognitive 85) crates/libs/bindgen/src/type_closure.rs:18 — TypeClosure::build has cognitive complexity 85 (threshold 15). Drivers by points: loops 14 (49 pts), if/else 10 (33 pts), boolean chains 3 (nesting depth added 58). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · CppConst · ×1
  • CppConst::write (cognitive 85) crates/libs/bindgen/src/types/cpp_const.rs:52 — CppConst::write has cognitive complexity 85 (threshold 15). Drivers by points: if/else 30 (63 pts), match/switch 3 (12 pts), boolean chains 7, loops 1 (3 pts) (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · Writer · ×1
  • Writer::write (cognitive 82) crates/libs/rdl/src/writer/mod.rs:122 — Writer::write has cognitive complexity 82 (threshold 15). Drivers by points: if/else 17 (45 pts), loops 14 (37 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IUIAutomationElement_Vtbl · ×1
  • IUIAutomationElement_Vtbl::new (cognitive 79) crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs:3625 — IUIAutomationElement_Vtbl::new has cognitive complexity 79 (threshold 15). Drivers by points: match/switch 79. Most of this is not in the body itself: 0 of the 79 points are its own statements and the rest belongs to 79 function items inside it that branch (GetRuntimeId, FindFirst, FindAll, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Merger · ×1
  • Merger::merge (cognitive 65) crates/libs/metadata/src/merge/mod.rs:98 — Merger::merge has cognitive complexity 65 (threshold 15). Drivers by points: if/else 18 (36 pts), loops 11 (29 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IADsUser_Vtbl · ×1
  • IADsUser_Vtbl::new (cognitive 48) crates/libs/windows/src/Windows/Win32/iads/mod.rs:12070 — IADsUser_Vtbl::new has cognitive complexity 48 (threshold 15). Drivers by points: match/switch 48. Most of this is not in the body itself: 0 of the 48 points are its own statements and the rest belongs to 48 function items inside it that branch (BadLoginAddress, BadLoginCount, LastLogin, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDebugControl6_Vtbl · ×1
  • IDebugControl6_Vtbl::new (cognitive 45) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:27822 — IDebugControl6_Vtbl::new has cognitive complexity 45 (threshold 15). Drivers by points: match/switch 45. Most of this is not in the body itself: 0 of the 45 points are its own statements and the rest belongs to 45 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugControl7_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugControl7_Vtbl · ×1
  • IDebugControl7_Vtbl::new (cognitive 45) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:30901 — IDebugControl7_Vtbl::new has cognitive complexity 45 (threshold 15). Drivers by points: match/switch 45. Most of this is not in the body itself: 0 of the 45 points are its own statements and the rest belongs to 45 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugControl6_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugControl5_Vtbl · ×1
  • IDebugControl5_Vtbl::new (cognitive 44) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:24772 — IDebugControl5_Vtbl::new has cognitive complexity 44 (threshold 15). Drivers by points: match/switch 44. Most of this is not in the body itself: 0 of the 44 points are its own statements and the rest belongs to 44 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · windows_window · ×1
  • windows_window::window::wndproc (cognitive 43) crates/libs/window/src/window.rs:393 — windows_window::window::wndproc has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 8, match/switch 2 (5 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IDebugControl4_Vtbl · ×1
  • IDebugControl4_Vtbl::new (cognitive 43) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:21784 — IDebugControl4_Vtbl::new has cognitive complexity 43 (threshold 15). Drivers by points: match/switch 43. Most of this is not in the body itself: 0 of the 43 points are its own statements and the rest belongs to 43 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IUIAutomation_Vtbl · ×1
  • IUIAutomation_Vtbl::new (cognitive 43) crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs:613 — IUIAutomation_Vtbl::new has cognitive complexity 43 (threshold 15). Drivers by points: match/switch 43. Most of this is not in the body itself: 0 of the 43 points are its own statements and the rest belongs to 43 function items inside it that branch (CompareElements, CompareRuntimeIds, GetRootElement, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IUpdate_Vtbl · ×1
  • IUpdate_Vtbl::new (cognitive 42) crates/libs/windows/src/Windows/Win32/wuapi/mod.rs:3676 — IUpdate_Vtbl::new has cognitive complexity 42 (threshold 15). Drivers by points: match/switch 42. Most of this is not in the body itself: 0 of the 42 points are its own statements and the rest belongs to 42 function items inside it that branch (Title, AutoSelectOnWebSites, BundledUpdates, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · TypeMap · ×1
  • TypeMap::filter (cognitive 38) crates/libs/bindgen/src/type_map.rs:30 — TypeMap::filter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 6 (23 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IXpsOMObjectFactory_Vtbl · ×1
  • IXpsOMObjectFactory_Vtbl::new (cognitive 37) crates/libs/windows/src/Windows/Win32/xps/mod.rs:5322 — IXpsOMObjectFactory_Vtbl::new has cognitive complexity 37 (threshold 15). Drivers by points: match/switch 37. Most of this is not in the body itself: 0 of the 37 points are its own statements and the rest belongs to 37 function items inside it that branch (CreatePackage, CreatePackageFromFile, CreatePackageFromStream, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDebugControl3_Vtbl · ×1
  • IDebugControl3_Vtbl::new (cognitive 36) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19249 — IDebugControl3_Vtbl::new has cognitive complexity 36 (threshold 15). Drivers by points: match/switch 36. Most of this is not in the body itself: 0 of the 36 points are its own statements and the rest belongs to 36 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Bindgen · ×1
  • Bindgen::write (cognitive 35) crates/libs/bindgen/src/lib.rs:454 — Bindgen::write has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 6 (8 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CppStruct · ×1
  • CppStruct::write_with_cfg (cognitive 35) crates/libs/bindgen/src/types/cpp_struct.rs:169 — CppStruct::write_with_cfg has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24 (29 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · Records · ×1
  • Records::into_stream (cognitive 35) crates/libs/metadata/src/writer/file/rec.rs:197 — Records::into_stream has cognitive complexity 35 (threshold 15). Drivers by points: loops 24, if/else 11. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · IDataCollectorSet_Vtbl · ×1
  • IDataCollectorSet_Vtbl::new (cognitive 34) crates/libs/windows/src/Windows/Win32/pla/mod.rs:2125 — IDataCollectorSet_Vtbl::new has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 34. Most of this is not in the body itself: 0 of the 34 points are its own statements and the rest belongs to 34 function items inside it that branch (DataCollectors, Duration, Description, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · UseTree2 · ×1
  • UseTree2::parse (cognitive 33) crates/libs/implement/src/lib.rs:307 — UseTree2::parse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (21 pts), match/switch 2 (8 pts), loops 1 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Layout · ×1
  • Layout::to_module (cognitive 33) crates/libs/rdl/src/writer/layout.rs:81 — Layout::to_module has cognitive complexity 33 (threshold 15). Drivers by points: loops 11 (26 pts), if/else 5, boolean chains 2 (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · IFileSystemImage_Vtbl · ×1
  • IFileSystemImage_Vtbl::new (cognitive 32) crates/libs/windows/src/Windows/Win32/imapi2fs/mod.rs:920 — IFileSystemImage_Vtbl::new has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 32. Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to 32 function items inside it that branch (Root, SessionStartBlock, FreeMediaBlocks, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ComponentStore · ×1
  • ComponentStore::drain (cognitive 31) crates/libs/reactor/src/core/component/mod.rs:1912 — ComponentStore::drain has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 5 (12 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TimeSpan · ×1
  • TimeSpan::fmt (cognitive 31) crates/libs/time/src/timespan.rs:300 — TimeSpan::fmt has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (12 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IDirect3DDevice9_Vtbl · ×1
  • IDirect3DDevice9_Vtbl::new (cognitive 31) crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3875 — IDirect3DDevice9_Vtbl::new has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 31. Most of this is not in the body itself: 0 of the 31 points are its own statements and the rest belongs to 31 function items inside it that branch (GetDirect3D, GetDisplayMode, GetCreationParameters, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDebugSystemObjects3_Vtbl · ×1
  • IDebugSystemObjects3_Vtbl::new (cognitive 31) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47790 — IDebugSystemObjects3_Vtbl::new has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 31. Most of this is not in the body itself: 0 of the 31 points are its own statements and the rest belongs to 31 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugSystemObjects4_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugSystemObjects4_Vtbl · ×1
  • IDebugSystemObjects4_Vtbl::new (cognitive 31) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48780 — IDebugSystemObjects4_Vtbl::new has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 31. Most of this is not in the body itself: 0 of the 31 points are its own statements and the rest belongs to 31 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugSystemObjects3_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IXMLDOMNode_Vtbl · ×1
  • IXMLDOMNode_Vtbl::new (cognitive 31) crates/libs/windows/src/Windows/Win32/msxml/mod.rs:9425 — IXMLDOMNode_Vtbl::new has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 31. Most of this is not in the body itself: 0 of the 31 points are its own statements and the rest belongs to 31 function items inside it that branch (nodeName, nodeValue, nodeType, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDebugControl2_Vtbl · ×1
  • IDebugControl2_Vtbl::new (cognitive 30) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17334 — IDebugControl2_Vtbl::new has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 30. Most of this is not in the body itself: 0 of the 30 points are its own statements and the rest belongs to 30 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IWebViewControl_Vtbl · ×1
  • IWebViewControl_Vtbl::new (cognitive 29) crates/libs/windows/src/Windows/Web/UI/mod.rs:444 — IWebViewControl_Vtbl::new has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 29. Most of this is not in the body itself: 0 of the 29 points are its own statements and the rest belongs to 29 function items inside it that branch (Source, DocumentTitle, CanGoBack, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IInkPicture_Vtbl · ×1
  • IInkPicture_Vtbl::new (cognitive 29) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:4982 — IInkPicture_Vtbl::new has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 29. Most of this is not in the body itself: 0 of the 29 points are its own statements and the rest belongs to 29 function items inside it that branch (hWnd, DefaultDrawingAttributes, Renderer, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · windows_strings · ×1
  • windows_strings::literals::decode_utf8_char (cognitive 28) crates/libs/strings/src/literals.rs:77 — windows_strings::literals::decode_utf8_char has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · windows_sys · ×1
  • windows_sys::core::literals::decode_utf8_char (cognitive 28) crates/libs/sys/src/core/literals.rs:42 — windows_sys::core::literals::decode_utf8_char has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ICoreWindow_Vtbl · ×1
  • ICoreWindow_Vtbl::new (cognitive 28) crates/libs/windows/src/Windows/UI/Core/mod.rs:3745 — ICoreWindow_Vtbl::new has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 28. Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to 28 function items inside it that branch (AutomationHostProvider, Bounds, CustomProperties, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IX509PrivateKey_Vtbl · ×1
  • IX509PrivateKey_Vtbl::new (cognitive 28) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15087 — IX509PrivateKey_Vtbl::new has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 28. Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to 28 function items inside it that branch (Export, ExportPublicKey, ContainerName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITextFont_Vtbl · ×1
  • ITextFont_Vtbl::new (cognitive 28) crates/libs/windows/src/Windows/Win32/tom/mod.rs:2042 — ITextFont_Vtbl::new has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 28. Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to 28 function items inside it that branch (GetDuplicate, CanChange, IsEqual, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITextCharacterFormat_Vtbl · ×1
  • ITextCharacterFormat_Vtbl::new (cognitive 26) crates/libs/windows/src/Windows/UI/Text/mod.rs:667 — ITextCharacterFormat_Vtbl::new has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 26. Most of this is not in the body itself: 0 of the 26 points are its own statements and the rest belongs to 26 function items inside it that branch (AllCaps, BackgroundColor, Bold, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDebugControl_Vtbl · ×1
  • IDebugControl_Vtbl::new (cognitive 26) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15620 — IDebugControl_Vtbl::new has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 26. Most of this is not in the body itself: 0 of the 26 points are its own statements and the rest belongs to 26 function items inside it that branch (GetInterruptTimeout, GetLogMask, GetNotifyEventHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugSystemObjects2_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugSystemObjects2_Vtbl · ×1
  • IDebugSystemObjects2_Vtbl::new (cognitive 26) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46911 — IDebugSystemObjects2_Vtbl::new has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 26. Most of this is not in the body itself: 0 of the 26 points are its own statements and the rest belongs to 26 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IDebugControl_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IInkOverlay_Vtbl · ×1
  • IInkOverlay_Vtbl::new (cognitive 26) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:3888 — IInkOverlay_Vtbl::new has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 26. Most of this is not in the body itself: 0 of the 26 points are its own statements and the rest belongs to 26 function items inside it that branch (hWnd, Enabled, DefaultDrawingAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITextDocument2_Vtbl · ×1
  • ITextDocument2_Vtbl::new (cognitive 25) crates/libs/windows/src/Windows/Win32/tom/mod.rs:746 — ITextDocument2_Vtbl::new has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 25. Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 25 function items inside it that branch (GetCaretType, GetDisplays, GetDocumentFont, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IWICImagingFactory_Vtbl · ×1
  • IWICImagingFactory_Vtbl::new (cognitive 25) crates/libs/windows/src/Windows/Win32/wincodec/mod.rs:4010 — IWICImagingFactory_Vtbl::new has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 25. Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 25 function items inside it that branch (CreateDecoderFromFilename, CreateDecoderFromStream, CreateDecoderFromFileHandle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · App · ×1
  • App::run_host (cognitive 24) crates/libs/reactor/src/app/mod.rs:1020 — App::run_host has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ITextParagraphFormat_Vtbl · ×1
  • ITextParagraphFormat_Vtbl::new (cognitive 24) crates/libs/windows/src/Windows/UI/Text/mod.rs:2086 — ITextParagraphFormat_Vtbl::new has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 24. Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to 24 function items inside it that branch (Alignment, FirstLineIndent, KeepTogether, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDebugSymbols5_Vtbl · ×1
  • IDebugSymbols5_Vtbl::new (cognitive 24) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44748 — IDebugSymbols5_Vtbl::new has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 24. Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to 24 function items inside it that branch (GetSymbolOptions, GetOffsetByName, GetOffsetByLine, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IInkStrokeDisp_Vtbl · ×1
  • IInkStrokeDisp_Vtbl::new (cognitive 24) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:8256 — IInkStrokeDisp_Vtbl::new has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 24. Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to 24 function items inside it that branch (ID, BezierPoints, DrawingAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITextPara_Vtbl · ×1
  • ITextPara_Vtbl::new (cognitive 24) crates/libs/windows/src/Windows/Win32/tom/mod.rs:3741 — ITextPara_Vtbl::new has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 24. Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to 24 function items inside it that branch (GetDuplicate, CanChange, IsEqual, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IVssComponent_Vtbl · ×1
  • IVssComponent_Vtbl::new (cognitive 24) crates/libs/windows/src/Windows/Win32/vswriter/mod.rs:346 — IVssComponent_Vtbl::new has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 24. Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to 24 function items inside it that branch (GetLogicalPath, GetComponentType, GetComponentName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IImageScannerSourceConfiguration_Vtbl · ×1
  • IImageScannerSourceConfiguration_Vtbl::new (cognitive 23) crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:422 — IImageScannerSourceConfiguration_Vtbl::new has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 23. Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 23 function items inside it that branch (MinScanArea, MaxScanArea, SelectedScanRegion, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDebugSymbols3_Vtbl · ×1
  • IDebugSymbols3_Vtbl::new (cognitive 23) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40192 — IDebugSymbols3_Vtbl::new has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 23. Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 23 function items inside it that branch (GetSymbolOptions, GetOffsetByName, GetOffsetByLine, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 2 other methods here (IDebugSymbols4_Vtbl::new, IDebugSystemObjects_Vtbl::new) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugSymbols4_Vtbl · ×1
  • IDebugSymbols4_Vtbl::new (cognitive 23) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42437 — IDebugSymbols4_Vtbl::new has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 23. Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 23 function items inside it that branch (GetSymbolOptions, GetOffsetByName, GetOffsetByLine, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 2 other methods here (IDebugSymbols3_Vtbl::new, IDebugSystemObjects_Vtbl::new) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugSystemObjects_Vtbl · ×1
  • IDebugSystemObjects_Vtbl::new (cognitive 23) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46177 — IDebugSystemObjects_Vtbl::new has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 23. Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 23 function items inside it that branch (GetEventThread, GetEventProcess, GetCurrentThreadId, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 2 other methods here (IDebugSymbols3_Vtbl::new, IDebugSymbols4_Vtbl::new) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IXMLDOMDocument_Vtbl · ×1
  • IXMLDOMDocument_Vtbl::new (cognitive 23) crates/libs/windows/src/Windows/Win32/msxml/mod.rs:7660 — IXMLDOMDocument_Vtbl::new has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 23. Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 23 function items inside it that branch (doctype, implementation, documentElement, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDataReader_Vtbl · ×1
  • IDataReader_Vtbl::new (cognitive 22) crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1021 — IDataReader_Vtbl::new has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 22. Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 22 function items inside it that branch (UnconsumedBufferLength, UnicodeEncoding, ByteOrder, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDiscFormat2Data_Vtbl · ×1
  • IDiscFormat2Data_Vtbl::new (cognitive 22) crates/libs/windows/src/Windows/Win32/imapi2/mod.rs:1140 — IDiscFormat2Data_Vtbl::new has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 22. Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 22 function items inside it that branch (Recorder, BufferUnderrunFreeDisabled, PostgapAlreadyInImage, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITextFont2_Vtbl · ×1
  • ITextFont2_Vtbl::new (cognitive 22) crates/libs/windows/src/Windows/Win32/tom/mod.rs:2933 — ITextFont2_Vtbl::new has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 22. Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 22 function items inside it that branch (GetCount, GetAutoLigatures, GetAutospaceAlpha, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IUri_Vtbl · ×1
  • IUri_Vtbl::new (cognitive 22) crates/libs/windows/src/Windows/Win32/urlmon/mod.rs:4213 — IUri_Vtbl::new has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 22. Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 22 function items inside it that branch (HasProperty, GetAbsoluteUri, GetAuthority, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · File · ×1
  • File::new (cognitive 21) crates/libs/metadata/src/reader/file.rs:15 — File::new has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 3 (5 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · IDebugClient5_Vtbl · ×1
  • IDebugClient5_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7559 — IDebugClient5_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient6_Vtbl::new, IDebugClient7_Vtbl::new, IDebugClient8_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugClient6_Vtbl · ×1
  • IDebugClient6_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9142 — IDebugClient6_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient7_Vtbl::new, IDebugClient8_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugClient7_Vtbl · ×1
  • IDebugClient7_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10737 — IDebugClient7_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient6_Vtbl::new, IDebugClient8_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugClient8_Vtbl · ×1
  • IDebugClient8_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12347 — IDebugClient8_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient6_Vtbl::new, IDebugClient7_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDebugClient9_Vtbl · ×1
  • IDebugClient9_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13980 — IDebugClient9_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (ConnectProcessServer, GetRunningProcessSystemIdByExecutableName, GetProcessOptions, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (IDebugClient5_Vtbl::new, IDebugClient6_Vtbl::new, IDebugClient7_Vtbl::new, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IDCompositionDevice_Vtbl · ×1
  • IDCompositionDevice_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1353 — IDCompositionDevice_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (CreateTargetForHwnd, CreateVisual, CreateSurface, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITraceDataCollector_Vtbl · ×1
  • ITraceDataCollector_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/pla/mod.rs:4635 — ITraceDataCollector_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (BufferSize, BuffersLost, BuffersWritten, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDvdControl2_Vtbl · ×1
  • IDvdControl2_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/strmif/mod.rs:8079 — IDvdControl2_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (PlayTitle, PlayChapterInTitle, PlayAtTimeInTitle, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITextRow_Vtbl · ×1
  • ITextRow_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/tom/mod.rs:6568 — ITextRow_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (GetAlignment, GetCellCount, GetCellCountCache, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IUIAutomationLegacyIAccessiblePattern_Vtbl · ×1
  • IUIAutomationLegacyIAccessiblePattern_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/uiautomationclient/mod.rs:6718 — IUIAutomationLegacyIAccessiblePattern_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (CurrentChildId, CurrentName, CurrentValue, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IWMPNetwork_Vtbl · ×1
  • IWMPNetwork_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/wmp/mod.rs:5470 — IWMPNetwork_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (bandWidth, recoveredPackets, sourceProtocol, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IXpsOMPath_Vtbl · ×1
  • IXpsOMPath_Vtbl::new (cognitive 21) crates/libs/windows/src/Windows/Win32/xps/mod.rs:7692 — IXpsOMPath_Vtbl::new has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 21. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 21 function items inside it that branch (GetGeometry, GetGeometryLocal, GetGeometryLookup, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · BitfieldBacking · ×1
  • BitfieldBacking::write_accessor (cognitive 20) crates/libs/bindgen/src/types/cpp_struct.rs:566 — BitfieldBacking::write_accessor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · WebViewWindowBuilder · ×1
  • WebViewWindowBuilder::create_with_status (cognitive 20) crates/libs/webview/src/window.rs:141 — WebViewWindowBuilder::create_with_status has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · IXmlNode_Vtbl · ×1
  • IXmlNode_Vtbl::new (cognitive 20) crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1379 — IXmlNode_Vtbl::new has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 20. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 20 function items inside it that branch (NodeValue, NodeType, NodeName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITaskSettings_Vtbl · ×1
  • ITaskSettings_Vtbl::new (cognitive 20) REDACTED:5831 — ITaskSettings_Vtbl::new has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 20. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 20 function items inside it that branch (AllowDemandStart, RestartInterval, RestartCount, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ISWbemDateTime_Vtbl · ×1
  • ISWbemDateTime_Vtbl::new (cognitive 20) crates/libs/windows/src/Windows/Win32/wbemdisp/mod.rs:374 — ISWbemDateTime_Vtbl::new has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 20. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 20 function items inside it that branch (Value, Year, YearSpecified, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IWSManEx_Vtbl · ×1
  • IWSManEx_Vtbl::new (cognitive 20) crates/libs/windows/src/Windows/Win32/wsmandisp/mod.rs:757 — IWSManEx_Vtbl::new has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 20. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 20 function items inside it that branch (CreateResourceLocator, SessionFlagUTF8, SessionFlagCredUsernamePassword, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Cfg · ×1
  • Cfg::write (cognitive 19) crates/libs/bindgen/src/package_writer.rs:43 — Cfg::write has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Index · ×1
  • Index::new_for_architecture (cognitive 19) crates/libs/metadata/src/reader/index.rs:43 — Index::new_for_architecture has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · IX509CertificateRequestPkcs10_Vtbl · ×1
  • IX509CertificateRequestPkcs10_Vtbl::new (cognitive 19) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:8514 — IX509CertificateRequestPkcs10_Vtbl::new has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 19. Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 19 function items inside it that branch (IsSmartCard, TemplateObjectId, PublicKey, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IFsrmClassificationManager_Vtbl · ×1
  • IFsrmClassificationManager_Vtbl::new (cognitive 19) crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:304 — IFsrmClassificationManager_Vtbl::new has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 19. Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 19 function items inside it that branch (ClassificationReportFormats, Logging, ClassificationReportMailTo, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IFsrmPropertyBag_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IFsrmPropertyBag_Vtbl · ×1
  • IFsrmPropertyBag_Vtbl::new (cognitive 19) crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2026 — IFsrmPropertyBag_Vtbl::new has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 19. Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 19 function items inside it that branch (Name, RelativePath, VolumeName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IFsrmClassificationManager_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IInkCollector_Vtbl · ×1
  • IInkCollector_Vtbl::new (cognitive 19) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:903 — IInkCollector_Vtbl::new has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 19. Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 19 function items inside it that branch (hWnd, Enabled, DefaultDrawingAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IInkDisp_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IInkDisp_Vtbl · ×1
  • IInkDisp_Vtbl::new (cognitive 19) crates/libs/windows/src/Windows/Win32/msinkaut/mod.rs:2221 — IInkDisp_Vtbl::new has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 19. Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 19 function items inside it that branch (Strokes, ExtendedProperties, Dirty, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IInkCollector_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · ISpeechVoice_Vtbl · ×1
  • ISpeechVoice_Vtbl::new (cognitive 19) crates/libs/windows/src/Windows/Win32/sapi/mod.rs:14062 — ISpeechVoice_Vtbl::new has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 19. Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 19 function items inside it that branch (Status, Voice, AudioOutput, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CppFn · ×1
  • CppFn::write (cognitive 18) crates/libs/bindgen/src/types/cpp_fn.rs:151 — CppFn::write has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IX509EnrollmentPolicyServer_Vtbl · ×1
  • IX509EnrollmentPolicyServer_Vtbl::new (cognitive 18) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12055 — IX509EnrollmentPolicyServer_Vtbl::new has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 18. Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 18 function items inside it that branch (GetTemplates, GetCAsForTemplate, GetCAs, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDCompositionDevice2_Vtbl · ×1
  • IDCompositionDevice2_Vtbl::new (cognitive 18) crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1846 — IDCompositionDevice2_Vtbl::new has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 18. Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 18 function items inside it that branch (CreateVisual, CreateSurfaceFactory, CreateSurface, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · INetFwRule_Vtbl · ×1
  • INetFwRule_Vtbl::new (cognitive 18) crates/libs/windows/src/Windows/Win32/netfw/mod.rs:3209 — INetFwRule_Vtbl::new has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 18. Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 18 function items inside it that branch (Name, Description, ApplicationName, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ISpeechRecognizer_Vtbl · ×1
  • ISpeechRecognizer_Vtbl::new (cognitive 18) crates/libs/windows/src/Windows/Win32/sapi/mod.rs:13073 — ISpeechRecognizer_Vtbl::new has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 18. Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 18 function items inside it that branch (Recognizer, AllowAudioInputFormatChangesOnNextSet, AudioInput, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IXpsOMCoreProperties_Vtbl · ×1
  • IXpsOMCoreProperties_Vtbl::new (cognitive 18) crates/libs/windows/src/Windows/Win32/xps/mod.rs:882 — IXpsOMCoreProperties_Vtbl::new has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 18. Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 18 function items inside it that branch (GetOwner, GetCategory, GetContentStatus, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IStorageFolderQueryOperations_Vtbl · ×1
  • IStorageFolderQueryOperations_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Storage/Search/mod.rs:724 — IStorageFolderQueryOperations_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (GetIndexedStateAsync, CreateFileQueryOverloadDefault, CreateFileQuery, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IX509CertificateRevocationList_Vtbl · ×1
  • IX509CertificateRevocationList_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:9851 — IX509CertificateRevocationList_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (Issuer, ThisUpdate, NextUpdate, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IADsComputer_Vtbl · ×1
  • IADsComputer_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Win32/iads/mod.rs:3035 — IADsComputer_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (ComputerID, Site, Description, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ISchemaType_Vtbl · ×1
  • ISchemaType_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Win32/msxml/mod.rs:4889 — ISchemaType_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (baseTypes, r#final, variety, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDvdInfo2_Vtbl · ×1
  • IDvdInfo2_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Win32/strmif/mod.rs:9289 — IDvdInfo2_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (GetCurrentDomain, GetCurrentLocation, GetCurrentUOPS, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ITextRange2_Vtbl · ×1
  • ITextRange2_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Win32/tom/mod.rs:5854 — ITextRange2_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (GetCch, GetCells, GetColumn, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ISWbemObject_Vtbl · ×1
  • ISWbemObject_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Win32/wbemdisp/mod.rs:1763 — ISWbemObject_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (Put_, Instances_, Subclasses_, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IXpsOMGlyphs_Vtbl · ×1
  • IXpsOMGlyphs_Vtbl::new (cognitive 17) crates/libs/windows/src/Windows/Win32/xps/mod.rs:3135 — IXpsOMGlyphs_Vtbl::new has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 17 function items inside it that branch (GetUnicodeString, GetGlyphIndexCount, GetGlyphMappingCount, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · tool_features · ×1
  • tool_features::load (cognitive 17) crates/tools/features/src/main.rs:62 — tool_features::load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Delegate · ×1
  • Delegate::write (cognitive 16) crates/libs/bindgen/src/types/delegate.rs:18 — Delegate::write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · Struct · ×1
  • Struct::write (cognitive 16) crates/libs/bindgen/src/types/struct.rs:17 — Struct::write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (16 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · IX509CertificateRequestCmc_Vtbl · ×1
  • IX509CertificateRequestCmc_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7853 — IX509CertificateRequestCmc_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (TemplateObjectId, NullSigned, CryptAttributes, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IVideoWindow_Vtbl · ×1
  • IVideoWindow_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/control/mod.rs:2599 — IVideoWindow_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (Caption, WindowStyle, WindowStyleEx, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDWriteFactory_Vtbl · ×1
  • IDWriteFactory_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2042 — IDWriteFactory_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (CreateCustomFontCollection, CreateFontFileReference, CreateCustomFontFileReference, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IADsClass_Vtbl · ×1
  • IADsClass_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/iads/mod.rs:2364 — IADsClass_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (PrimaryInterface, CLSID, OID, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IDiscFormat2TrackAtOnce_Vtbl · ×1
  • IDiscFormat2TrackAtOnce_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/imapi2/mod.rs:2628 — IDiscFormat2TrackAtOnce_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (Recorder, BufferUnderrunFreeDisabled, NumberOfExistingTracks, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IAccessible_Vtbl · ×1
  • IAccessible_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/oleacc/mod.rs:737 — IAccessible_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (accParent, accChildCount, accChild, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ISpeechPhraseInfo_Vtbl · ×1
  • ISpeechPhraseInfo_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/sapi/mod.rs:10162 — ISpeechPhraseInfo_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (LanguageId, GrammarId, StartTime, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IVssBackupComponents_Vtbl · ×1
  • IVssBackupComponents_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/vsbackup/mod.rs:563 — IVssBackupComponents_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (GetWriterComponentsCount, GetWriterComponents, GatherWriterMetadata, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · IWMPCore_Vtbl · ×1
  • IWMPCore_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/wmp/mod.rs:1593 — IWMPCore_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (URL, openState, playState, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IWMPMedia_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IWMPMedia_Vtbl · ×1
  • IWMPMedia_Vtbl::new (cognitive 16) crates/libs/windows/src/Windows/Win32/wmp/mod.rs:4246 — IWMPMedia_Vtbl::new has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 16 function items inside it that branch (isIdentical, sourceURL, name, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: one other method here (IWMPCore_Vtbl::new) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · tool_yml · ×1
  • tool_yml::msrv::yml (cognitive 16) crates/tools/yml/src/msrv.rs:3 — tool_yml::msrv::yml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D22 · Internal API Consistency · Inconsistent naming for adding transitions to a storyboard. `Manager` uses `schedule_transition`, while `Storyboard` uses `add_transition` and `add_transition_at_keyframe`. The verb 'schedule' implies immediate execution or queueing, while 'add' implies construction. Furthermore, `Manager` takes a `time` parameter directly, whereas `Storyboard` uses a `Keyframe` object for timing, creating a conceptual mismatch in how time is specified. · ×1
  • Inconsistent naming for adding transitions to a storyboard. `Manager` uses `schedule_transition`, while `Storyboard` uses `add_transition` and `add_transition_at_keyframe`. The verb 'schedule' implies immediate execution or queueing, while 'add' implies construction. Furthermore, `Manager` takes a `time` parameter directly, whereas `Storyboard` uses a `Keyframe` object for timing, creating a conceptual mismatch in how time is specified. — Unify the naming on the `Storyboard` type to use `schedule_transition` and `schedule_transition_at_keyframe` (or `schedule_transition_at_time`) to align with the `Manager`'s terminology, or rename `Manager`'s method to `create_transition` if it is purely a builder operation. Clarify if `Manager.schedule_transition` is a convenience wrapper that delegates to `Storyboard.add_transition`. (signatures: Manager.schedule_transition(variable: Variable, transition: Transition, time: f64): Result | Storyboard.add_transition(variable: Variable, transition: Transition): Result | Storyboard.add_transition_at_keyframe(variable: Variable, transition: Transition, keyframe: Keyframe): Result)
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (22 members, 8 shared lines) · ×1
  • Near-duplicate member family (22 members, 8 shared lines) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2825 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2825-2909 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:361-484 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:631-713 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:547-590 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9357-9413 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4589-4718 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5700-5874 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10779-10896 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9592-9682 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14670-14847 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:296-353 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2042-2289 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2428-2497 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2607-2722 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3050-3145 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6795-6905 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7018-7161 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8528-8571 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2267-2396 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1211-1289 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3136-3253 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:187-263 — These 22 members are variants of one another: a block of 8 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 22 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 22 times.
D4 · Code Duplication · Near-duplicate member family (9 members, 17 shared lines) · ×1
  • Near-duplicate member family (9 members, 17 shared lines) crates/libs/reactor/src/native/winui/bindings.rs:6237 — crates/libs/reactor/src/native/winui/bindings.rs:6237-6259 | crates/libs/reactor/src/native/winui/bindings.rs:9915-9937 | crates/libs/reactor/src/native/winui/bindings.rs:10622-10644 | crates/libs/reactor/src/native/winui/bindings.rs:12196-12218 | crates/libs/reactor/src/native/winui/bindings.rs:13704-13726 | crates/libs/reactor/src/native/winui/bindings.rs:15586-15608 | crates/libs/reactor/src/native/winui/bindings.rs:19535-19557 | crates/libs/reactor/src/native/winui/bindings.rs:20135-20157 | crates/libs/reactor/src/native/winui/bindings.rs:20165-20187 — These 9 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Near-duplicate member family (9 members, 14 shared lines) · ×1
  • Near-duplicate member family (9 members, 14 shared lines) crates/libs/reactor/src/native/winui/bindings.rs:9497 — crates/libs/reactor/src/native/winui/bindings.rs:9497-9520 | crates/libs/reactor/src/native/winui/bindings.rs:9527-9550 | crates/libs/reactor/src/native/winui/bindings.rs:9977-10002 | crates/libs/reactor/src/native/winui/bindings.rs:15107-15132 | crates/libs/reactor/src/native/winui/bindings.rs:17480-17505 | crates/libs/reactor/src/native/winui/bindings.rs:17683-17708 | crates/libs/reactor/src/native/winui/bindings.rs:18156-18181 | crates/libs/reactor/src/native/winui/bindings.rs:19219-19244 | crates/libs/reactor/src/native/winui/bindings.rs:19251-19276 — These 9 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Near-duplicate member family (7 members, 17 shared lines) · ×1
  • Near-duplicate member family (7 members, 17 shared lines) crates/libs/reactor/src/native/winui/bindings.rs:20344 — crates/libs/reactor/src/native/winui/bindings.rs:20344-20366 | crates/libs/reactor/src/native/winui/bindings.rs:20376-20398 | crates/libs/reactor/src/native/winui/bindings.rs:20408-20430 | crates/libs/reactor/src/native/winui/bindings.rs:20440-20462 | crates/libs/reactor/src/native/winui/bindings.rs:20472-20494 | crates/libs/reactor/src/native/winui/bindings.rs:20504-20526 | crates/libs/reactor/src/native/winui/bindings.rs:20536-20558 — These 7 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication · Near-duplicate member pair (262 shared lines) · ×1
  • Near-duplicate member pair (262 shared lines) crates/libs/reference/src/bindings.rs:78 — crates/libs/reference/src/bindings.rs:78-850 | crates/libs/windows/src/Windows/Foundation/mod.rs:674-1072 — These two members are variants of one another: 262 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (54 shared lines) · ×1
  • Near-duplicate member pair (54 shared lines) crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1353 — crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1353-1651 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1846-2105 — These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Members sharing a duplicated core (356 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (356 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:16 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:16-26 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:457-468 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7787-7797 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:724-734 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:812-822 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2346-2356 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2791-2801 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1496-1506 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1656-1666 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1670-1680 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1684-1694 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2903-2913 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3292-3303 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3314-3325 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3417-3427 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3431-3441 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2485-2495 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:321-331 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:443-453 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:463-473 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:347-357 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:445-456 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2850-2860 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2864-2874 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2878-2888 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2892-2902 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2906-2916 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2042-2052 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:197-207 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:218-228 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:238-248 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:258-268 | crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs:211-221 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:737-747 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs:108-119 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:493-503 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:925-935 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1389-1399 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2219-2229 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2438-2448 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2841-2851 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2855-2865 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2972-2982 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3074-3084 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:301-311 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:315-325 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:329-339 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1091-1101 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1105-1115 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1119-1129 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1241-1252 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1256-1267 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:380-390 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:883-893 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1356-1367 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:290-300 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:304-314 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:318-328 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:332-342 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:346-356 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1022-1032 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1443-1453 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1457-1467 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1471-1481 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1485-1495 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1499-1509 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:127-137 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:147-157 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:507-517 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:521-531 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:112-122 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:126-136 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:140-150 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:154-164 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:433-443 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:565-575 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:427-438 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:182-192 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1276-1286 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1572-1582 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1586-1596 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1600-1610 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1628-1638 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1815-1825 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2077-2087 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2471-2481 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2485-2495 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2652-2662 | crates/libs/windows/src/Windows/Devices/Power/mod.rs:21-31 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:45-55 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6302-6312 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1805-1815 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:239-249 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:497-507 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:757-767 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:351-361 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:646-656 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:649-659 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1644-1654 | crates/libs/windows/src/Windows/Foundation/mod.rs:369-379 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:90-100 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:223-233 | crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs:109-119 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:146-156 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:160-170 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:174-184 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:456-466 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:470-480 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:598-608 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:636-646 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:656-666 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:677-687 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:726-737 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:1003-1014 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2642-2652 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1541-1551 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1555-1565 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1583-1593 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:666-676 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:680-690 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:147-157 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1871-1881 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2861-2871 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2875-2885 | crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs:22-32 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:285-295 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:410-420 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:737-747 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1092-1102 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1106-1116 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1966-1976 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2078-2088 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4705-4715 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:5123-5133 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:129-139 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:718-728 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:922-932 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1285-1295 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:87-97 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:228-239 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:243-254 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:258-269 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:349-360 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:433-443 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:447-457 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1110-1120 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1641-1651 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1803-1813 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1817-1827 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2075-2085 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2466-2476 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2581-2591 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3063-3073 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6529-6540 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6569-6580 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7247-7257 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:34-44 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:48-58 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:283-293 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2894-2904 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3790-3800 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4342-4352 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4597-4607 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4611-4621 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4625-4635 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5253-5263 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5267-5277 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5281-5291 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5295-5305 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5309-5319 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5418-5428 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5432-5442 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5478-5488 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5492-5502 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5506-5516 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:536-546 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:266-276 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:30-40 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:252-262 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:381-391 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:642-652 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:656-666 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:800-810 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:897-907 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:344-354 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:601-611 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:615-625 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:699-709 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:713-723 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1550-1560 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2182-2192 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3037-3047 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3051-3061 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3065-3075 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3079-3089 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3093-3103 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3107-3117 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3121-3131 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3135-3145 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3149-3159 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3163-3173 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3275-3286 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3290-3301 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3305-3316 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3320-3331 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3886-3896 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3900-3910 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3928-3938 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3970-3980 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3984-3994 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3998-4008 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4012-4022 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4067-4078 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4082-4093 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4212-4223 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4263-4274 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3141-3151 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:163-173 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:614-624 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1356-1366 | crates/libs/windows/src/Windows/Media/mod.rs:1765-1775 | crates/libs/windows/src/Windows/Media/mod.rs:1779-1789 | crates/libs/windows/src/Windows/Media/mod.rs:1831-1842 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:131-141 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:659-669 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:869-879 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:883-893 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:897-907 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:911-921 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:925-935 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3138-3148 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3152-3162 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4339-4350 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:653-663 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:667-677 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:681-691 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:695-705 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:709-719 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:278-288 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:292-302 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:306-316 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1499-1509 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2660-2670 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2783-2793 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:238-248 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:351-361 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:428-438 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1110-1120 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1124-1134 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1138-1148 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1152-1162 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1302-1312 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:466-476 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:480-490 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:494-504 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:508-519 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:491-501 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:505-515 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:533-543 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:547-557 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:561-571 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:95-105 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1006-1016 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1538-1548 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2153-2163 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2167-2177 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:761-771 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:288-298 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:302-312 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:864-874 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:878-888 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1072-1082 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1086-1096 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:180-190 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:118-128 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:570-580 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1309-1319 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1066-1076 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1080-1090 | crates/libs/windows/src/Windows/Storage/mod.rs:178-188 | crates/libs/windows/src/Windows/Storage/mod.rs:5175-5185 | crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs:9-19 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:232-242 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:309-319 | crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs:193-203 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2329-2339 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2343-2353 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2357-2367 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2498-2508 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2512-2522 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2526-2536 | crates/libs/windows/src/Windows/System/mod.rs:151-161 | crates/libs/windows/src/Windows/System/mod.rs:165-175 | crates/libs/windows/src/Windows/System/mod.rs:179-189 | crates/libs/windows/src/Windows/System/mod.rs:193-203 | crates/libs/windows/src/Windows/System/mod.rs:548-558 | crates/libs/windows/src/Windows/System/mod.rs:562-572 | crates/libs/windows/src/Windows/System/mod.rs:576-586 | crates/libs/windows/src/Windows/System/mod.rs:590-600 | crates/libs/windows/src/Windows/System/mod.rs:1076-1086 | crates/libs/windows/src/Windows/System/mod.rs:1270-1280 | crates/libs/windows/src/Windows/System/mod.rs:4190-4200 | crates/libs/windows/src/Windows/System/mod.rs:4204-4214 | crates/libs/windows/src/Windows/System/mod.rs:4218-4228 | crates/libs/windows/src/Windows/System/mod.rs:4232-4242 | crates/libs/windows/src/Windows/System/mod.rs:4260-4270 | crates/libs/windows/src/Windows/System/mod.rs:4274-4284 | crates/libs/windows/src/Windows/UI/Core/mod.rs:304-315 | crates/libs/windows/src/Windows/UI/Core/mod.rs:319-330 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1445-1455 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1487-1497 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1709-1720 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1724-1735 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3448-3458 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3490-3500 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:548-558 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:562-572 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:604-614 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:660-670 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1356-1366 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1398-1408 | crates/libs/windows/src/Windows/UI/Input/mod.rs:173-183 | crates/libs/windows/src/Windows/UI/Input/mod.rs:187-197 | crates/libs/windows/src/Windows/UI/Input/mod.rs:201-211 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3110-3120 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3138-3148 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3599-3609 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2872-2882 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2886-2896 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3272-3283 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:24-34 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:83-93 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:253-263 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:282-293 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:784-794 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:187-198 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:267-278 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:30-40 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:184-195 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1944-1955 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1966-1977 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1988-1999 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:2134-2145 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4458-4468 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4473-4483 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:135-145 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:149-159 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:816-826 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:1271-1281 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:395-405 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:465-475 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:575-586 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:590-601 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:764-774 | crates/libs/windows/src/Windows/Web/UI/mod.rs:282-292 | crates/libs/windows/src/Windows/Web/UI/mod.rs:352-362 — These 356 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 356 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 356 times.
D4 · Code Duplication · Members sharing a duplicated core (246 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (246 members, 50+ identical tokens) crates/libs/collections/src/bindings.rs:74 — crates/libs/collections/src/bindings.rs:74-101 | crates/libs/collections/src/bindings.rs:449-501 | crates/libs/collections/src/bindings.rs:711-868 | crates/libs/collections/src/bindings.rs:975-1024 | crates/libs/collections/src/bindings.rs:1201-1298 | crates/libs/collections/src/bindings.rs:2165-2407 | crates/libs/collections/src/bindings.rs:2704-2811 | crates/libs/future/src/bindings.rs:1515-1583 | crates/libs/future/src/bindings.rs:1812-1931 | crates/libs/reactor/src/native/winui/bindings.rs:9147-9187 | crates/libs/reactor/src/native/winui/bindings.rs:21849-21924 | crates/libs/reference/src/bindings.rs:1045-1072 | crates/libs/windows/src/Windows/AI/Actions/Provider/mod.rs:26-44 | crates/libs/windows/src/Windows/AI/Actions/Provider/mod.rs:79-94 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:204-262 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:518-549 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1779-1823 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1883-1898 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2026-2041 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2106-2124 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2192-2210 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2278-2296 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2374-2420 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2557-2575 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2632-2650 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2708-2726 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2790-2822 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2877-2892 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2961-2976 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3055-3101 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3179-3211 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3297-3343 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3392-3424 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3489-3507 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3589-3635 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3719-3765 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3824-3839 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3897-3915 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3979-4011 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4070-4088 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4159-4174 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4239-4271 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4329-4347 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4420-4438 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4499-4517 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4552-4570 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4636-4651 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4712-4730 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4772-4804 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4871-4886 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4955-4970 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5034-5066 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5135-5153 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5207-5222 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5294-5309 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5434-5452 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5581-5596 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5657-5675 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5732-5747 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5812-5844 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5906-5924 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5981-5999 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6060-6092 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6129-6147 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6208-6226 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6296-6311 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6390-6422 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6484-6502 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6563-6578 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6639-6654 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6729-6774 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6837-6855 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6924-6942 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:2560-2606 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2385-2497 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2714-2729 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2819-2897 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2984-2999 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:3080-3095 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:172-204 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4326-4384 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4433-4479 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4575-4621 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4893-4939 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:959-974 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:478-538 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:92-138 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:164-179 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:858-873 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:974-989 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1322-1337 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1648-1666 | crates/libs/windows/src/Windows/Data/Json/mod.rs:147-246 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:846-926 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1379-1682 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1775-1835 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2233-2248 | crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs:233-248 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:63-94 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:377-392 | crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:25-43 | crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:229-244 | crates/libs/windows/src/Windows/Devices/I2c/mod.rs:359-405 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:275-307 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:3498-3513 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4458-4632 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4824-4947 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:5611-5650 | crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs:215-230 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:3270-3330 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:284-409 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:680-751 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:989-1142 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:56-74 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:231-246 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:135-195 | crates/libs/windows/src/Windows/Devices/mod.rs:116-190 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:452-525 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:680-772 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1067-1120 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1248-1375 | crates/libs/windows/src/Windows/Foundation/mod.rs:247-265 | crates/libs/windows/src/Windows/Foundation/mod.rs:315-330 | crates/libs/windows/src/Windows/Foundation/mod.rs:1479-1494 | crates/libs/windows/src/Windows/Foundation/mod.rs:1596-1628 | crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs:320-352 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1039-1144 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1194-1212 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:509-582 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:574-620 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:668-714 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:824-985 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1044-1090 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:522-553 | crates/libs/windows/src/Windows/Graphics/Effects/mod.rs:27-52 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1356-1520 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1675-1721 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1769-1787 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:202-227 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:382-397 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:707-725 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:324-412 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:488-576 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:697-883 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:966-1054 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1312-1428 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1513-1614 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3376-3391 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3879-3904 | crates/libs/windows/src/Windows/Media/Core/mod.rs:1724-1789 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2102-2161 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2231-2256 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2645-2711 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3120-3138 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:2409-2455 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:429-461 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1075-1107 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1169-1201 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:922-975 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:279-371 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:514-532 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:684-702 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:755-815 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1056-1071 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1113-1128 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1189-1241 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1465-1621 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1758-1829 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2420-2438 | crates/libs/windows/src/Windows/Media/mod.rs:556-684 | crates/libs/windows/src/Windows/Media/mod.rs:743-788 | crates/libs/windows/src/Windows/Media/mod.rs:833-848 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1557-1589 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1710-1817 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:580-598 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1533-1599 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1697-1777 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1882-1900 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1963-2008 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2091-2150 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:262-322 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:443-508 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:584-649 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:781-799 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:872-890 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:978-996 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1106-1124 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1640-1655 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:432-447 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:491-506 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:44-56 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:177-195 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:303-500 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:347-393 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:496-514 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:663-681 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:839-940 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1040-1065 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1098-1116 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1208-1254 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1402-1420 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1474-1527 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1563-1581 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1749-1815 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:724-963 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1128-1235 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:811-826 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1021-1344 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1557-1808 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1915-1930 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1962-1980 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2027-2059 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2108-2133 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2254-2366 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2406-2424 | crates/libs/windows/src/Windows/Storage/mod.rs:1690-1862 | crates/libs/windows/src/Windows/Storage/mod.rs:1917-1949 | crates/libs/windows/src/Windows/Storage/mod.rs:2228-2372 | crates/libs/windows/src/Windows/Storage/mod.rs:2437-2452 | crates/libs/windows/src/Windows/Storage/mod.rs:2590-2731 | crates/libs/windows/src/Windows/Storage/mod.rs:2977-3079 | crates/libs/windows/src/Windows/Storage/mod.rs:3203-3249 | crates/libs/windows/src/Windows/Storage/mod.rs:3349-3364 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:117-149 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:189-207 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3159-3177 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:123-222 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:325-340 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:243-258 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:423-438 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:692-731 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:961-1133 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:301-332 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:102-169 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:144-159 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:191-209 | crates/libs/windows/src/Windows/UI/Text/mod.rs:667-1180 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1439-1721 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:393-411 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:668-686 | crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs:509-524 | crates/libs/windows/src/Windows/Web/Http/mod.rs:2087-2188 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:152-279 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:624-775 | crates/libs/windows/src/Windows/Web/UI/mod.rs:444-1029 | crates/libs/windows/src/Windows/Web/mod.rs:37-52 — These 246 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 246 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 246 times.
D4 · Code Duplication · Members sharing a duplicated core (152 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (152 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1955 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1955-1972 | crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs:76-192 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:63-94 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:190-313 | crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs:70-174 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:422-767 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:824-985 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1470-1494 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2925-2969 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1021-1344 | crates/libs/windows/src/Windows/UI/Text/mod.rs:667-1180 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1439-1721 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2086-2571 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:94-171 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:312-464 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:596-755 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:813-851 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:918-1000 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:351-381 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3053-3127 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3816-3840 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:125-229 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1291-1367 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1600-1696 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:205-261 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:448-543 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:81-158 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:337-387 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:581-678 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:834-898 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1046-1110 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1266-1343 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:419-483 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:759-830 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1443-1506 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2326-2390 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2570-2654 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2913-2997 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3113-3247 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3340-3430 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3634-3847 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3975-4111 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4197-4280 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4389-4505 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4755-4826 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5032-5096 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5213-5330 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5415-5492 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5583-5661 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5717-5754 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6019-6076 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6744-6808 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7034-7291 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7853-8114 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:9072-9189 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:9851-10174 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10264-10348 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10797-10887 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11004-11121 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11321-11570 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12988-13032 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13599-13656 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13830-13914 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14132-14196 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14275-14346 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15087-15665 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15951-16034 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:120-250 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:393-537 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:326-396 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:506-628 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:714-797 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:887-983 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:438-660 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1418-1606 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:269-536 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3811-3868 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4605-4661 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4974-5069 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5139-5202 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5717-5760 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6476-6553 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6629-6698 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6775-6838 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6891-6928 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7859-7941 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7997-8040 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8100-8143 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9646-9750 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10651-10800 | crates/libs/windows/src/Windows/Win32/control/mod.rs:52-95 | crates/libs/windows/src/Windows/Win32/control/mod.rs:163-221 | crates/libs/windows/src/Windows/Win32/control/mod.rs:279-323 | crates/libs/windows/src/Windows/Win32/control/mod.rs:558-864 | crates/libs/windows/src/Windows/Win32/control/mod.rs:960-1004 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1097-1199 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1555-1586 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1722-1845 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2050-2193 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2599-2972 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5015-5136 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2666-2724 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:1542-1593 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:252-414 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:827-1038 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3136-3253 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3465-3722 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:4352-4562 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:156-213 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:360-504 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:816-840 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1153-1242 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:304-611 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1163-1226 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1744-1800 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2655-2718 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2959-3089 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1279-1423 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1513-1597 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1676-1753 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1933-1977 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:2364-2674 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3561-3690 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4095-4272 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4330-4374 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4624-4668 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4834-4931 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5128-5172 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5230-5274 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5519-5569 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5850-5894 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6686-6750 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6855-6972 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7227-7429 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7508-7585 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7818-8082 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8145-8196 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8309-8426 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8523-8614 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8723-8814 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9029-9280 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9462-9566 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9630-9686 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9894-10111 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10189-10246 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10442-10686 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10751-10803 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10883-10965 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11010-11034 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11092-11136 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11207-11271 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:12070-12999 — These 152 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 152 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 152 times.
D4 · Code Duplication · Members sharing a duplicated core (148 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (148 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:95 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:95-101 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:157-163 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:219-225 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:281-287 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:354-360 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:446-452 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:500-506 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:555-561 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:607-613 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:706-712 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:772-778 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:833-839 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:899-905 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:961-967 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1008-1014 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1074-1080 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1140-1146 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1215-1221 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1270-1276 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1353-1359 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1444-1450 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1506-1512 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1569-1575 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1638-1644 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1701-1707 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1865-1871 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1940-1946 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2011-2017 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2081-2087 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2167-2173 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2253-2259 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2350-2356 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2467-2473 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2617-2623 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2690-2696 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2774-2780 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2862-2868 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2946-2952 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3028-3034 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3153-3159 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3270-3276 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3471-3477 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3562-3568 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3692-3698 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3809-3815 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3879-3885 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3963-3969 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4052-4058 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4130-4136 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4220-4226 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4314-4320 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4387-4393 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4481-4487 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4610-4616 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4694-4700 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4845-4851 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4929-4935 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5018-5024 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5106-5112 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5192-5198 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5262-5268 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5351-5357 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5419-5425 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5491-5497 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5563-5569 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5639-5645 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5717-5723 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5793-5799 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5888-5894 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5966-5972 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6044-6050 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6190-6196 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6281-6287 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6371-6377 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6466-6472 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6545-6551 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6621-6627 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6709-6715 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6819-6825 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6898-6904 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6976-6982 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7065-7071 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7119-7125 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7231-7237 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7285-7291 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7331-7337 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7378-7384 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7425-7431 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7509-7515 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7601-7607 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7655-7661 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7738-7744 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7829-7835 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7908-7914 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7976-7982 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8023-8029 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8078-8084 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8137-8143 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8192-8198 | crates/libs/windows/src/Windows/Gaming/UI/mod.rs:239-245 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:600-606 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1252-1258 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1073-1079 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2251-2257 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3167-3173 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1280-1286 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1354-1360 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1428-1434 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1502-1508 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1587-1593 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1776-1782 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1846-1852 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1913-1919 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1977-1983 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2047-2053 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2125-2131 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2198-2204 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2276-2282 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2354-2360 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2413-2419 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2491-2497 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2569-2575 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2648-2654 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2715-2721 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2802-2808 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2890-2896 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2964-2970 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3039-3045 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3120-3126 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3195-3201 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3270-3276 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3363-3369 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3436-3442 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3628-3634 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3698-3704 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3757-3763 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3865-3871 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3953-3959 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4049-4055 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4115-4121 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4194-4200 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4261-4267 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4331-4337 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4404-4410 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4960-4966 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5027-5033 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5098-5104 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5165-5171 — These 148 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 148 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 148 times.
D4 · Code Duplication · Members sharing a duplicated core (82 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (82 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:103 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:103-109 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:165-171 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:227-233 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:289-295 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:362-368 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:454-460 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:508-514 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:615-621 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:907-913 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1148-1154 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1223-1229 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1278-1284 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1361-1367 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1452-1458 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1514-1520 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1577-1583 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1646-1652 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1709-1715 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6984-6990 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7073-7079 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7239-7245 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7433-7439 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7517-7523 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7609-7615 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7663-7669 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7746-7752 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7837-7843 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7916-7922 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8031-8037 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8145-8151 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:144-150 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3241-3247 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:129-135 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:364-370 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:646-652 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1553-1559 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1835-1841 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2108-2114 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:608-614 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1260-1266 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1081-1087 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2259-2265 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3175-3181 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1531-1537 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1289-1295 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:179-185 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:497-503 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:605-611 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:979-985 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1142-1148 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2740-2746 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:130-136 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1295-1301 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1369-1375 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1443-1449 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1517-1523 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1602-1608 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1791-1797 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1861-1867 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1992-1998 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2291-2297 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2584-2590 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2663-2669 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2730-2736 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2817-2823 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2905-2911 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2979-2985 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3054-3060 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3135-3141 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3210-3216 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3285-3291 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3378-3384 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3643-3649 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3880-3886 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3968-3974 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4064-4070 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4209-4215 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4276-4282 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4346-4352 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4975-4981 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5113-5119 | crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs:166-172 — These 82 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 82 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 82 times.
D4 · Code Duplication · Members sharing a duplicated core (78 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (78 members, 50+ identical tokens) crates/libs/reactor/src/native/winui/bindings.rs:73 — crates/libs/reactor/src/native/winui/bindings.rs:73-84 | crates/libs/reactor/src/native/winui/bindings.rs:145-156 | crates/libs/reactor/src/native/winui/bindings.rs:732-743 | crates/libs/reactor/src/native/winui/bindings.rs:1036-1047 | crates/libs/reactor/src/native/winui/bindings.rs:1158-1169 | crates/libs/reactor/src/native/winui/bindings.rs:1251-1262 | crates/libs/reactor/src/native/winui/bindings.rs:1382-1393 | crates/libs/reactor/src/native/winui/bindings.rs:1491-1502 | crates/libs/reactor/src/native/winui/bindings.rs:1631-1642 | crates/libs/reactor/src/native/winui/bindings.rs:1728-1739 | crates/libs/reactor/src/native/winui/bindings.rs:1920-1931 | crates/libs/reactor/src/native/winui/bindings.rs:2004-2015 | crates/libs/reactor/src/native/winui/bindings.rs:2053-2064 | crates/libs/reactor/src/native/winui/bindings.rs:2236-2247 | crates/libs/reactor/src/native/winui/bindings.rs:2292-2303 | crates/libs/reactor/src/native/winui/bindings.rs:2809-2820 | crates/libs/reactor/src/native/winui/bindings.rs:3046-3057 | crates/libs/reactor/src/native/winui/bindings.rs:3416-3427 | crates/libs/reactor/src/native/winui/bindings.rs:3813-3824 | crates/libs/reactor/src/native/winui/bindings.rs:3887-3898 | crates/libs/reactor/src/native/winui/bindings.rs:3932-3943 | crates/libs/reactor/src/native/winui/bindings.rs:4058-4069 | crates/libs/reactor/src/native/winui/bindings.rs:4369-4380 | crates/libs/reactor/src/native/winui/bindings.rs:4575-4586 | crates/libs/reactor/src/native/winui/bindings.rs:4632-4643 | crates/libs/reactor/src/native/winui/bindings.rs:4764-4775 | crates/libs/reactor/src/native/winui/bindings.rs:22215-22226 | crates/libs/reactor/src/native/winui/bindings.rs:22360-22371 | crates/libs/reactor/src/native/winui/bindings.rs:22432-22443 | crates/libs/reactor/src/native/winui/bindings.rs:22861-22872 | crates/libs/reactor/src/native/winui/bindings.rs:23016-23027 | crates/libs/reactor/src/native/winui/bindings.rs:23280-23291 | crates/libs/reactor/src/native/winui/bindings.rs:23337-23348 | crates/libs/reactor/src/native/winui/bindings.rs:23395-23406 | crates/libs/reactor/src/native/winui/bindings.rs:23527-23538 | crates/libs/reactor/src/native/winui/bindings.rs:23601-23612 | crates/libs/reactor/src/native/winui/bindings.rs:23656-23667 | crates/libs/reactor/src/native/winui/bindings.rs:23722-23733 | crates/libs/reactor/src/native/winui/bindings.rs:23778-23789 | crates/libs/reactor/src/native/winui/bindings.rs:23931-23942 | crates/libs/reactor/src/native/winui/bindings.rs:24037-24048 | crates/libs/reactor/src/native/winui/bindings.rs:24108-24119 | crates/libs/reactor/src/native/winui/bindings.rs:24325-24336 | crates/libs/reactor/src/native/winui/bindings.rs:24524-24535 | crates/libs/reactor/src/native/winui/bindings.rs:24898-24909 | crates/libs/reactor/src/native/winui/bindings.rs:24970-24981 | crates/libs/reactor/src/native/winui/bindings.rs:25049-25060 | crates/libs/reactor/src/native/winui/bindings.rs:25132-25143 | crates/libs/reactor/src/native/winui/bindings.rs:25397-25408 | crates/libs/reactor/src/native/winui/bindings.rs:25489-25500 | crates/libs/reactor/src/native/winui/bindings.rs:25605-25616 | crates/libs/reactor/src/native/winui/bindings.rs:25677-25688 | crates/libs/reactor/src/native/winui/bindings.rs:25933-25944 | crates/libs/reactor/src/native/winui/bindings.rs:26129-26140 | crates/libs/reactor/src/native/winui/bindings.rs:26490-26501 | crates/libs/reactor/src/native/winui/bindings.rs:26874-26885 | crates/libs/reactor/src/native/winui/bindings.rs:26949-26960 | crates/libs/reactor/src/native/winui/bindings.rs:27268-27279 | crates/libs/reactor/src/native/winui/bindings.rs:27324-27335 | crates/libs/reactor/src/native/winui/bindings.rs:27650-27661 | crates/libs/reactor/src/native/winui/bindings.rs:27802-27813 | crates/libs/reactor/src/native/winui/bindings.rs:27884-27895 | crates/libs/reactor/src/native/winui/bindings.rs:28003-28014 | crates/libs/reactor/src/native/winui/bindings.rs:28119-28130 | crates/libs/reactor/src/native/winui/bindings.rs:28175-28186 | crates/libs/reactor/src/native/winui/bindings.rs:28535-28546 | crates/libs/reactor/src/native/winui/bindings.rs:28630-28641 | crates/libs/reactor/src/native/winui/bindings.rs:28741-28752 | crates/libs/reactor/src/native/winui/bindings.rs:29059-29070 | crates/libs/reactor/src/native/winui/bindings.rs:29409-29420 | crates/libs/reactor/src/native/winui/bindings.rs:29521-29532 | crates/libs/reactor/src/native/winui/bindings.rs:29666-29677 | crates/libs/reactor/src/native/winui/bindings.rs:29807-29818 | crates/libs/reactor/src/native/winui/bindings.rs:30001-30012 | crates/libs/reactor/src/native/winui/bindings.rs:30094-30105 | crates/libs/reactor/src/native/winui/bindings.rs:30507-30518 | crates/libs/reactor/src/native/winui/bindings.rs:30903-30914 | crates/libs/reactor/src/native/winui/bindings.rs:30947-30958 — These 78 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 78 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 78 times.
D4 · Code Duplication · Members sharing a duplicated core (66 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (66 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/Core/mod.rs:459 — crates/libs/windows/src/Windows/UI/Core/mod.rs:459-470 | crates/libs/windows/src/Windows/UI/Core/mod.rs:474-485 | crates/libs/windows/src/Windows/UI/Core/mod.rs:489-500 | crates/libs/windows/src/Windows/UI/Core/mod.rs:504-515 | crates/libs/windows/src/Windows/UI/Core/mod.rs:519-530 | crates/libs/windows/src/Windows/UI/Core/mod.rs:534-545 | crates/libs/windows/src/Windows/UI/Core/mod.rs:549-560 | crates/libs/windows/src/Windows/UI/Core/mod.rs:916-927 | crates/libs/windows/src/Windows/UI/Core/mod.rs:931-942 | crates/libs/windows/src/Windows/UI/Core/mod.rs:946-957 | crates/libs/windows/src/Windows/UI/Core/mod.rs:961-972 | crates/libs/windows/src/Windows/UI/Core/mod.rs:976-987 | crates/libs/windows/src/Windows/UI/Core/mod.rs:991-1002 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1006-1017 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1543-1553 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1557-1567 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1571-1581 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1585-1595 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1599-1609 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1613-1623 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1641-1651 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2635-2645 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2649-2659 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2663-2673 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2677-2687 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2691-2701 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2705-2715 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2719-2729 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3046-3057 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3061-3072 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3076-3087 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3091-3102 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3106-3117 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3121-3132 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3136-3147 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3201-3211 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3215-3225 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3229-3239 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3546-3556 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3560-3570 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3574-3584 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3588-3598 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3602-3612 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3616-3626 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3644-3654 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:74-84 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:89-99 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:104-114 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:119-129 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:134-144 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:149-159 | crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs:164-174 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2911-2921 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2926-2936 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2941-2951 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2956-2966 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3124-3134 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3139-3149 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3154-3164 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3169-3179 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3184-3194 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3199-3209 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:3214-3224 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4193-4203 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4208-4218 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4223-4233 — These 66 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 66 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 66 times.
D4 · Code Duplication · Members sharing a duplicated core (61 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (61 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1375 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1375-1381 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:676-682 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:857-863 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:361-367 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:554-560 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:714-720 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:848-854 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:999-1005 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1060-1066 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1171-1177 | crates/libs/windows/src/Windows/Data/Json/mod.rs:302-308 | crates/libs/windows/src/Windows/Data/Json/mod.rs:559-565 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4747-4753 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4878-4884 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:163-169 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:429-435 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:729-735 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:9-15 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:122-128 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:230-236 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:328-334 | crates/libs/windows/src/Windows/Foundation/mod.rs:2285-2291 | crates/libs/windows/src/Windows/Globalization/Collation/mod.rs:56-62 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:841-847 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4479-4485 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2051-2057 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1787-1793 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3572-3578 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3676-3682 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4660-4666 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:209-215 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3811-3817 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:987-993 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:70-76 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:9-15 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:238-244 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:321-327 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1544-1550 | crates/libs/windows/src/Windows/Storage/mod.rs:287-293 | crates/libs/windows/src/Windows/Storage/mod.rs:456-462 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:191-197 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:948-954 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:56-62 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:263-269 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:452-458 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:641-647 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:842-848 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1189-1195 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1452-1458 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1792-1798 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1927-1933 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2135-2141 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2434-2440 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2565-2571 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2909-2915 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3193-3199 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3372-3378 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3535-3541 | crates/libs/windows/src/Windows/Web/Http/mod.rs:486-492 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1045-1051 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1183-1189 — These 61 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 61 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 61 times.
D4 · Code Duplication · Members sharing a duplicated core (58 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (58 members, 50+ identical tokens) crates/libs/windows/src/Windows/Data/Json/mod.rs:400 — crates/libs/windows/src/Windows/Data/Json/mod.rs:400-406 | crates/libs/windows/src/Windows/Data/Json/mod.rs:766-772 | crates/libs/windows/src/Windows/Data/Json/mod.rs:888-894 | crates/libs/windows/src/Windows/Foundation/mod.rs:2108-2114 | crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs:248-254 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:32-38 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:179-185 | crates/libs/windows/src/Windows/Networking/mod.rs:165-171 | crates/libs/windows/src/Windows/System/Inventory/mod.rs:62-68 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:63-69 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:220-226 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:270-276 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:409-415 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:459-465 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:598-604 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:648-654 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:799-805 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:849-855 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1034-1040 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1239-1245 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1336-1342 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1409-1415 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1459-1465 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1616-1622 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1674-1680 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1749-1755 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1799-1805 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1934-1940 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2092-2098 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2142-2148 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2299-2305 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2391-2397 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2441-2447 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2572-2578 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2726-2732 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2796-2802 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2866-2872 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2916-2922 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3243-3249 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3422-3428 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3492-3498 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3542-3548 | crates/libs/windows/src/Windows/Web/Http/mod.rs:86-92 | crates/libs/windows/src/Windows/Web/Http/mod.rs:351-357 | crates/libs/windows/src/Windows/Web/Http/mod.rs:456-462 | crates/libs/windows/src/Windows/Web/Http/mod.rs:666-672 | crates/libs/windows/src/Windows/Web/Http/mod.rs:731-737 | crates/libs/windows/src/Windows/Web/Http/mod.rs:792-798 | crates/libs/windows/src/Windows/Web/Http/mod.rs:852-858 | crates/libs/windows/src/Windows/Web/Http/mod.rs:932-938 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1052-1058 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1190-1196 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1360-1366 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1418-1424 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1540-1546 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1718-1724 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1821-1827 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1879-1885 — These 58 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 58 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 58 times.
D4 · Code Duplication · Members sharing a duplicated core (45 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (45 members, 50+ identical tokens) crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1287 — crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1287-1293 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1361-1367 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1435-1441 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1509-1515 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1594-1600 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1783-1789 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1853-1859 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1920-1926 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1984-1990 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2054-2060 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2132-2138 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2205-2211 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2283-2289 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2361-2367 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2420-2426 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2498-2504 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2576-2582 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2655-2661 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2722-2728 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2809-2815 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2897-2903 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2971-2977 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3046-3052 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3127-3133 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3202-3208 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3277-3283 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3370-3376 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3443-3449 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3520-3526 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3635-3641 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3705-3711 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3764-3770 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3820-3826 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3872-3878 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3960-3966 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4056-4062 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4122-4128 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4201-4207 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4268-4274 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4338-4344 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4411-4417 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4967-4973 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5034-5040 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5105-5111 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5172-5178 — These 45 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 45 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 45 times.
D4 · Code Duplication · Members sharing a duplicated core (31 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (31 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:110 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:110-116 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:172-178 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:234-240 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:296-302 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:369-375 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:713-719 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:779-785 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:840-846 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1015-1021 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1081-1087 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2088-2094 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2174-2180 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2260-2266 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2357-2363 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2474-2480 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3035-3041 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3160-3166 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3277-3283 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3569-3575 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3699-3705 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4402-4408 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1302-1308 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1376-1382 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1450-1456 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1524-1530 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1609-1615 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2061-2067 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2139-2145 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2212-2218 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2427-2433 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2505-2511 — These 31 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 31 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 31 times.
D4 · Code Duplication · Members sharing a duplicated core (30 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (30 members, 50+ identical tokens) crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:382 — crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:382-388 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:239-245 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:704-710 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:909-915 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1134-1140 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1438-1444 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1959-1965 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4738-4744 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4991-4997 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5296-5302 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5593-5599 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1087-1093 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2526-2532 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2654-2660 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4474-4480 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4792-4798 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7497-7503 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7559-7565 | crates/libs/windows/src/Windows/Media/Core/mod.rs:830-836 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:114-120 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:278-284 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1356-1362 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2362-2368 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1180-1186 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:359-365 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:935-941 | crates/libs/windows/src/Windows/Storage/mod.rs:3183-3189 | crates/libs/windows/src/Windows/Storage/mod.rs:3331-3337 | crates/libs/windows/src/Windows/Storage/mod.rs:4597-4603 | crates/libs/windows/src/Windows/Storage/mod.rs:5028-5034 — These 30 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 30 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 30 times.
D4 · Code Duplication · Members sharing a duplicated core (29 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (29 members, 50+ identical tokens) crates/libs/windows/src/Windows/AI/Actions/mod.rs:23 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:23-29 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:643-649 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:724-730 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:787-793 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:879-885 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:941-947 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:991-997 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1041-1047 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1711-1717 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1761-1767 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1916-1922 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2060-2066 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2122-2128 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2179-2185 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:109-115 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:38-44 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2407-2413 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1198-1204 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:14-20 | crates/libs/windows/src/Windows/Media/Core/mod.rs:349-355 | crates/libs/windows/src/Windows/Media/Core/mod.rs:863-869 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3607-3613 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5900-5906 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6058-6064 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6397-6403 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4132-4138 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:588-594 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1173-1179 | crates/libs/windows/src/Windows/UI/Shell/Tasks/mod.rs:142-148 — These 29 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 29 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 29 times.
D4 · Code Duplication · Members sharing a duplicated core (21 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (21 members, 50+ identical tokens) crates/libs/webview/src/bindings.rs:825 — crates/libs/webview/src/bindings.rs:825-849 | crates/libs/webview/src/bindings.rs:948-972 | crates/libs/webview/src/bindings.rs:1122-1146 | crates/libs/webview/src/bindings.rs:1222-1246 | crates/libs/webview/src/bindings.rs:2157-2181 | crates/libs/webview/src/bindings.rs:2218-2242 | crates/libs/webview/src/bindings.rs:2326-2350 | crates/libs/webview/src/bindings.rs:2435-2459 | crates/libs/webview/src/bindings.rs:2838-2862 | crates/libs/webview/src/bindings.rs:3712-3736 | crates/libs/webview/src/bindings.rs:3771-3795 | crates/libs/webview/src/bindings.rs:4005-4029 | crates/libs/webview/src/bindings.rs:4106-4130 | crates/libs/webview/src/bindings.rs:4261-4285 | crates/libs/webview/src/bindings.rs:4420-4444 | crates/libs/webview/src/bindings.rs:4581-4605 | crates/libs/webview/src/bindings.rs:4669-4693 | crates/libs/webview/src/bindings.rs:5557-5581 | crates/libs/webview/src/bindings.rs:5675-5699 | crates/libs/webview/src/bindings.rs:5839-5863 | crates/libs/webview/src/bindings.rs:5915-5939 — These 21 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 21 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 21 times.
D4 · Code Duplication · Members sharing a duplicated core (18 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (18 members, 50+ identical tokens) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:365 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:365-370 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:696-701 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2272-2277 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2503-2508 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2840-2845 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3267-3272 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3867-3872 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4300-4305 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4693-4698 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4978-4983 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5350-5355 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5512-5517 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6690-6695 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10194-10199 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10724-10729 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13757-13762 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14078-14083 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14216-14221 — These 18 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 18 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 18 times.
D4 · Code Duplication · Duplicated block (94 lines × 7) · ×1
  • Duplicated block (94 lines × 7) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16329 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16329-16422 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:18115-18208 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20144-20237 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23039-23132 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26063-26156 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29131-29224 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32216-32309 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (71 lines × 3) · ×1
  • Duplicated block (71 lines × 3) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:41137 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:41137-41207 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:43424-43494 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45753-45823 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (61–62 lines × 2) · ×1
  • Duplicated block (61–62 lines × 2) crates/libs/strings/src/literals.rs:78 — crates/libs/strings/src/literals.rs:78-139 | crates/libs/sys/src/core/literals.rs:43-103 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (58 lines × 4) · ×1
  • Duplicated block (58 lines × 4) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23149 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23149-23206 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26173-26230 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29241-29298 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32326-32383 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (51 lines × 5) · ×1
  • Duplicated block (51 lines × 5) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37931 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37931-37981 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38959-39009 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:41083-41133 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:43370-43420 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45699-45749 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (47 lines × 9) · ×1
  • Duplicated block (47 lines × 9) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3843 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3843-3889 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4707-4753 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5649-5695 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6692-6738 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8238-8284 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9827-9873 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11428-11474 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13044-13090 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14689-14735 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (43–47 lines × 2) · ×1
  • Duplicated block (43–47 lines × 2) crates/libs/reference/src/bindings.rs:804 — crates/libs/reference/src/bindings.rs:804-850 | crates/libs/windows/src/Windows/Foundation/mod.rs:1030-1072 — before extracting anything, compare `crates/libs/reference/src/bindings.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 363 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (35 lines × 5) · ×1
  • Duplicated block (35 lines × 5) crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:3815 — crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:3815-3849 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:4391-4425 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:4985-5019 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:5647-5681 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:6366-6400 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (34 lines × 5) · ×1
  • Duplicated block (34 lines × 5) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8298 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8298-8331 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9887-9920 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11488-11521 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13104-13137 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14749-14782 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×1
  • Duplicated block (32 lines × 2) crates/libs/composition/src/bindings.rs:1688 — crates/libs/composition/src/bindings.rs:1688-1719 | crates/libs/composition/src/bindings_lifted.rs:1482-1513 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (31 lines × 4) · ×1
  • Duplicated block (31 lines × 4) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46490 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46490-46520 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47272-47302 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48235-48265 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:49237-49267 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (28 lines × 3) · ×1
  • Duplicated block (28 lines × 3) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7481 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7481-7508 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:10340-10367 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:15522-15549 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (26 lines × 4) · ×1
  • Duplicated block (26 lines × 4) crates/libs/rdl/src/reader/callback.rs:17 — crates/libs/rdl/src/reader/callback.rs:17-42 | crates/libs/rdl/src/reader/delegate.rs:18-43 | crates/libs/rdl/src/reader/fn.rs:17-42 | crates/libs/rdl/src/reader/method.rs:14-39 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (23 lines × 3) · ×1
  • Duplicated block (23 lines × 3) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:2177 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:2177-2199 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:2621-2643 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3093-3115 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (1–22 lines × 26) · ×1
  • Duplicated block (1–22 lines × 26) crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:718 — crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:718-718 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1465-1465 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1825-1825 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1956-1956 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2287-2287 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2391-2391 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2526-2526 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2633-2633 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8335-8335 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:498-498 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:2972-2972 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:7035-7035 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:8593-8593 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:11675-11675 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18904-18904 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32725-32746 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33179-33200 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33719-33740 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34432-34453 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1140-1140 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:226-226 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10914-10914 | crates/libs/windows/src/Windows/Win32/dxcore_interface/mod.rs:472-472 | crates/libs/windows/src/Windows/Win32/dxcore_interface/mod.rs:624-624 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1098-1098 | crates/libs/windows/src/Windows/Win32/filtereg/mod.rs:131-131 — `crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs` and `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (22 lines × 4) · ×1
  • Duplicated block (22 lines × 4) crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:1708 — crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:1708-1729 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:2071-2092 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:2496-2517 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:2960-2981 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) crates/libs/reactor/src/core/pump/planner/view.rs:354 — crates/libs/reactor/src/core/pump/planner/view.rs:354-375 | crates/libs/reactor/src/core/pump/planner/view.rs:391-412 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19 lines × 5) · ×1
  • Duplicated block (19 lines × 5) crates/libs/reactor/src/native/winui/bindings.rs:7766 — crates/libs/reactor/src/native/winui/bindings.rs:7766-7784 | crates/libs/reactor/src/native/winui/bindings.rs:9532-9550 | crates/libs/reactor/src/native/winui/bindings.rs:10903-10921 | crates/libs/reactor/src/native/winui/bindings.rs:18193-18211 | crates/libs/reactor/src/native/winui/bindings.rs:21537-21555 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (17–18 lines × 6) · ×1
  • Duplicated block (17–18 lines × 6) crates/libs/reactor/src/native/winui/bindings.rs:12590 — crates/libs/reactor/src/native/winui/bindings.rs:12590-12607 | crates/libs/reactor/src/native/winui/bindings.rs:14035-14052 | crates/libs/reactor/src/native/winui/bindings.rs:14717-14734 | crates/libs/reactor/src/native/winui/bindings.rs:16335-16352 | crates/libs/reactor/src/native/winui/bindings.rs:16439-16455 | crates/libs/reactor/src/native/winui/bindings.rs:17792-17809 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (18 lines × 5) · ×1
  • Duplicated block (18 lines × 5) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20241 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20241-20258 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:23136-23153 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26160-26177 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:29228-29245 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32313-32330 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (17–18 lines × 3) · ×1
  • Duplicated block (17–18 lines × 3) crates/libs/reactor/src/native/winui/bindings.rs:5475 — crates/libs/reactor/src/native/winui/bindings.rs:5475-5491 | crates/libs/reactor/src/native/winui/bindings.rs:15591-15608 | crates/libs/reactor/src/native/winui/bindings.rs:18658-18675 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×1
  • Duplicated block (18 lines × 3) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34683 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34683-34700 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34907-34924 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:35147-35164 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (17 lines × 6) · ×1
  • Duplicated block (17 lines × 6) REDACTED:3241 — REDACTED:3241-3257 | REDACTED:3341-3357 | REDACTED:3441-3457 | REDACTED:3541-3557 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:576-592 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:677-693 — `REDACTED` and `crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (17 lines × 4) · ×1
  • Duplicated block (17 lines × 4) crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3794 — crates/libs/windows/src/Windows/Win32/dinput/mod.rs:3794-3810 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:4234-4250 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:4473-4489 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:4698-4714 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×1
  • Duplicated block (17 lines × 3) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1633 — crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1633-1649 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:2299-2315 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:2390-2406 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×1
  • Duplicated block (17 lines × 2) crates/libs/rdl/src/reader/attribute_ref.rs:404 — crates/libs/rdl/src/reader/attribute_ref.rs:404-420 | crates/libs/rdl/src/reader/attribute_ref.rs:500-516 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (16 lines × 6) · ×1
  • Duplicated block (16 lines × 6) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:4069 — crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:4069-4084 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:331-346 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:411-426 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5451-5466 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:158-173 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:448-463 — `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` and `crates/libs/windows/src/Windows/Win32/comcat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (16 lines × 4) · ×1
  • Duplicated block (16 lines × 4) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7504 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7504-7519 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:10363-10378 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:15545-15560 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3209-3224 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) crates/libs/bindgen/src/filter.rs:407 — crates/libs/bindgen/src/filter.rs:407-422 | crates/libs/bindgen/src/filter.rs:424-439 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (13–16 lines × 2) · ×1
  • Duplicated block (13–16 lines × 2) crates/libs/metadata/src/merge/mod.rs:338 — crates/libs/metadata/src/merge/mod.rs:338-353 | crates/libs/metadata/src/merge/mod.rs:847-859 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (15 lines × 19) · ×1
  • Duplicated block (15 lines × 19) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:306 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:306-320 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:577-591 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1074-1088 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1472-1486 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2166-2180 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2379-2393 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3898-3912 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4050-4064 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4135-4149 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4220-4234 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4390-4404 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4475-4489 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4600-4614 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4810-4824 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4980-4994 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5189-5203 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:5839-5853 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6484-6498 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6569-6583 — all 19 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (14–15 lines × 3) · ×1
  • Duplicated block (14–15 lines × 3) crates/libs/metadata/src/merge/mod.rs:342 — crates/libs/metadata/src/merge/mod.rs:342-356 | crates/libs/metadata/src/merge/mod.rs:849-862 | crates/libs/metadata/src/merge/remap.rs:212-226 — before extracting anything, compare `crates/libs/metadata/src/merge/mod.rs` and `crates/libs/metadata/src/merge/remap.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9–12 lines × 211) · ×1
  • Duplicated block (9–12 lines × 211) crates/libs/collections/src/bindings.rs:87 — crates/libs/collections/src/bindings.rs:87-96 | crates/libs/collections/src/bindings.rs:485-494 | crates/libs/collections/src/bindings.rs:1008-1017 | crates/libs/future/src/bindings.rs:1563-1574 | crates/libs/future/src/bindings.rs:1908-1919 | crates/libs/reference/src/bindings.rs:1058-1067 | crates/libs/windows/src/Windows/AI/Actions/Provider/mod.rs:31-40 | crates/libs/windows/src/Windows/AI/Actions/Provider/mod.rs:84-92 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:535-544 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1808-1817 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1888-1896 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2031-2039 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2111-2120 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2197-2206 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2283-2292 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2405-2414 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2562-2571 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2637-2646 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2713-2722 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2808-2817 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2882-2890 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2966-2974 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3086-3095 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3197-3206 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3328-3337 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3410-3419 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3494-3503 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3620-3629 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3750-3759 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3829-3837 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3902-3911 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3997-4006 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4075-4084 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4164-4172 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4257-4266 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4334-4343 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4425-4434 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4504-4513 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4557-4566 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4641-4649 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4717-4726 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4790-4799 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4876-4884 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4960-4968 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5052-5061 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5140-5149 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5212-5220 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5299-5307 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5439-5448 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5586-5594 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5662-5671 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5737-5745 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5830-5839 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5911-5920 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5986-5995 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6078-6087 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6134-6143 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6213-6222 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6301-6309 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6408-6417 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6489-6498 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6568-6576 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6644-6652 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6759-6768 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6842-6851 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6929-6938 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2476-2485 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2719-2727 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2989-2997 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:3085-3093 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:190-199 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4368-4377 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4464-4473 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4606-4615 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4924-4933 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:964-972 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:522-531 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:123-132 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:169-177 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:863-871 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:979-987 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1327-1335 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1653-1662 | crates/libs/windows/src/Windows/Data/Json/mod.rs:227-236 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1819-1828 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2238-2246 | crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs:238-246 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:80-89 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:382-390 | crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:30-39 | crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:234-242 | crates/libs/windows/src/Windows/Devices/I2c/mod.rs:390-399 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:292-301 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:3503-3511 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4607-4616 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4926-4935 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:5634-5643 | crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs:220-228 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:734-743 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1117-1126 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:61-70 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:236-244 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:179-188 | crates/libs/windows/src/Windows/Devices/mod.rs:173-182 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1352-1361 | crates/libs/windows/src/Windows/Foundation/mod.rs:252-261 | crates/libs/windows/src/Windows/Foundation/mod.rs:320-328 | crates/libs/windows/src/Windows/Foundation/mod.rs:1484-1492 | crates/libs/windows/src/Windows/Foundation/mod.rs:1614-1623 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1123-1132 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1199-1208 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:565-574 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:605-614 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:699-708 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:959-968 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1075-1084 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:539-548 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1496-1505 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1706-1715 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1774-1783 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:213-222 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:387-395 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:712-721 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:394-403 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:558-567 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:858-867 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1036-1045 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1408-1417 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1595-1604 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3381-3389 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3890-3899 | crates/libs/windows/src/Windows/Media/Core/mod.rs:1771-1780 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2144-2153 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2242-2251 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2694-2703 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3125-3134 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:2440-2449 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:447-456 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1093-1102 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1187-1196 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:959-968 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:350-359 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:519-528 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:689-698 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:799-808 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1061-1069 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1118-1126 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1224-1233 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1598-1607 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1812-1821 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2425-2434 | crates/libs/windows/src/Windows/Media/mod.rs:661-670 | crates/libs/windows/src/Windows/Media/mod.rs:773-782 | crates/libs/windows/src/Windows/Media/mod.rs:838-846 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1575-1584 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1797-1806 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:585-594 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1758-1767 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1887-1896 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1993-2002 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2134-2143 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:306-315 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:786-795 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:877-886 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:983-992 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1111-1120 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1645-1653 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:437-445 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:496-504 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:182-191 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:378-387 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:501-510 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:668-677 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:919-928 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1103-1112 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1239-1248 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1407-1416 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1568-1577 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:816-824 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1306-1315 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1769-1778 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1920-1928 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1967-1976 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2045-2054 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2411-2420 | crates/libs/windows/src/Windows/Storage/mod.rs:1838-1847 | crates/libs/windows/src/Windows/Storage/mod.rs:1935-1944 | crates/libs/windows/src/Windows/Storage/mod.rs:2350-2359 | crates/libs/windows/src/Windows/Storage/mod.rs:2442-2450 | crates/libs/windows/src/Windows/Storage/mod.rs:3060-3069 | crates/libs/windows/src/Windows/Storage/mod.rs:3234-3243 | crates/libs/windows/src/Windows/Storage/mod.rs:3354-3362 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:135-144 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:194-203 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3164-3173 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:203-212 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:330-338 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:248-256 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:428-436 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:716-725 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1107-1116 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:318-327 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:149-157 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:196-205 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:398-407 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:673-682 | crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs:514-522 | crates/libs/windows/src/Windows/Web/Http/mod.rs:2169-2178 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:255-264 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:750-759 | crates/libs/windows/src/Windows/Web/mod.rs:42-50 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/future/src/bindings.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (12 lines × 21) · ×1
  • Duplicated block (12 lines × 21) crates/libs/webview/src/bindings.rs:838 — crates/libs/webview/src/bindings.rs:838-849 | crates/libs/webview/src/bindings.rs:961-972 | crates/libs/webview/src/bindings.rs:1135-1146 | crates/libs/webview/src/bindings.rs:1235-1246 | crates/libs/webview/src/bindings.rs:2170-2181 | crates/libs/webview/src/bindings.rs:2231-2242 | crates/libs/webview/src/bindings.rs:2339-2350 | crates/libs/webview/src/bindings.rs:2448-2459 | crates/libs/webview/src/bindings.rs:2851-2862 | crates/libs/webview/src/bindings.rs:3725-3736 | crates/libs/webview/src/bindings.rs:3784-3795 | crates/libs/webview/src/bindings.rs:4018-4029 | crates/libs/webview/src/bindings.rs:4119-4130 | crates/libs/webview/src/bindings.rs:4274-4285 | crates/libs/webview/src/bindings.rs:4433-4444 | crates/libs/webview/src/bindings.rs:4594-4605 | crates/libs/webview/src/bindings.rs:4682-4693 | crates/libs/webview/src/bindings.rs:5570-5581 | crates/libs/webview/src/bindings.rs:5688-5699 | crates/libs/webview/src/bindings.rs:5852-5863 | crates/libs/webview/src/bindings.rs:5928-5939 — all 21 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (12 lines × 6) · ×1
  • Duplicated block (12 lines × 6) crates/libs/reactor/src/core/pump/planner/view.rs:1913 — crates/libs/reactor/src/core/pump/planner/view.rs:1913-1924 | crates/libs/reactor/src/core/pump/planner/view.rs:1958-1969 | crates/libs/reactor/src/core/pump/planner/view.rs:2013-2024 | crates/libs/reactor/src/core/pump/planner/view.rs:2050-2061 | crates/libs/reactor/src/core/pump/planner/view.rs:2080-2091 | crates/libs/reactor/src/core/pump/planner/view.rs:2116-2127 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (10–12 lines × 2) · ×1
  • Duplicated block (10–12 lines × 2) crates/libs/bindgen/src/types/cpp_interface.rs:211 — crates/libs/bindgen/src/types/cpp_interface.rs:211-220 | crates/libs/bindgen/src/types/interface.rs:548-559 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (11 lines × 6) · ×1
  • Duplicated block (11 lines × 6) crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6746 — crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6746-6756 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8292-8302 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9881-9891 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11482-11492 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13098-13108 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14743-14753 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (7–11 lines × 3) · ×1
  • Duplicated block (7–11 lines × 3) crates/libs/collections/src/bindings.rs:2256 — crates/libs/collections/src/bindings.rs:2256-2266 | crates/libs/collections/src/bindings.rs:2271-2281 | crates/libs/collections/src/bindings.rs:2285-2291 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (10–11 lines × 2) · ×1
  • Duplicated block (10–11 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:2430 — crates/libs/reactor/src/native/winui/mod.rs:2430-2440 | crates/libs/reactor/src/native/winui/mod.rs:2505-2514 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (6–11 lines × 2) · ×1
  • Duplicated block (6–11 lines × 2) crates/libs/time/src/datetime.rs:164 — crates/libs/time/src/datetime.rs:164-169 | crates/libs/time/src/datetime.rs:312-322 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (8–11 lines × 2) · ×1
  • Duplicated block (8–11 lines × 2) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1044 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1044-1051 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1714-1724 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (8–10 lines × 91) · ×1
  • Duplicated block (8–10 lines × 91) crates/libs/core/src/imp/bindings.rs:236 — crates/libs/core/src/imp/bindings.rs:236-245 | crates/libs/windows/src/Windows/Win32/appserviceinterop/mod.rs:101-108 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:161-168 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:695-704 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:805-814 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:861-868 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:906-915 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:989-998 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1219-1228 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1352-1359 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1563-1572 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1609-1616 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1732-1741 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:1782-1789 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2086-2093 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2231-2240 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2890-2899 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2952-2959 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3069-3078 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3196-3205 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3359-3368 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3470-3479 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3582-3591 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3632-3641 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3761-3770 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:4520-4527 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6053-6062 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6276-6283 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6399-6408 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6925-6934 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:7225-7234 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:368-377 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:581-590 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:2085-2094 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:2210-2219 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3948-3957 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:4069-4078 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:4247-4256 | crates/libs/windows/src/Windows/Win32/castinginterop/mod.rs:213-222 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:142-151 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:331-340 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:411-420 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3452-3459 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4646-4655 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4853-4862 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5186-5195 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5451-5460 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5746-5755 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7559-7566 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8830-8839 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10396-10405 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:308-317 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:1186-1195 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:1284-1293 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:309-318 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:1425-1434 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5849-5858 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:8798-8807 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8682-8691 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9663-9672 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:10580-10587 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12402-12409 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:4750-4759 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:26055-26064 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:337-346 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:385-392 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2073-2082 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2953-2962 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:4928-4937 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1056-1065 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1832-1839 | crates/libs/windows/src/Windows/Win32/dispex/mod.rs:157-166 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:158-167 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:585-594 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2257-2266 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3442-3451 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3768-3777 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4034-4041 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5770-5779 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6154-6163 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6198-6205 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6359-6368 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6680-6689 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6884-6893 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7409-7418 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7640-7649 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2726-2735 | crates/libs/windows/src/Windows/Win32/fhcfg/mod.rs:405-414 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:681-690 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:739-746 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:448-457 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8–10 lines × 75) · ×1
  • Duplicated block (8–10 lines × 75) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:690 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:690-699 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1677-1686 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:246-255 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:351-358 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:525-534 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:140-149 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:372-381 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:658-667 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:881-890 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1093-1102 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1325-1334 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:327-336 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:576-585 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2178-2187 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2469-2478 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2635-2644 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2703-2710 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2805-2814 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3819-3828 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4088-4097 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4262-4271 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4484-4493 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4654-4663 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4942-4951 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5308-5317 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5841-5850 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5935-5944 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7255-7264 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10132-10141 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10503-10512 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10570-10577 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10688-10697 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10868-10877 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11536-11545 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12546-12555 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12614-12621 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13959-13966 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14044-14053 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16016-16025 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16771-16780 | crates/libs/windows/src/Windows/Win32/certexit/mod.rs:80-89 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:188-197 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:379-388 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:607-616 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:779-788 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:397-406 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5051-5060 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5805-5812 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6183-6190 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6682-6691 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7138-7145 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8026-8035 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8129-8138 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9398-9407 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9502-9511 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10776-10785 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10999-11008 | crates/libs/windows/src/Windows/Win32/control/mod.rs:81-90 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1910-1917 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2315-2322 | crates/libs/windows/src/Windows/Win32/dispex/mod.rs:338-347 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:1260-1269 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1224-1233 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1365-1374 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1520-1529 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2259-2268 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2823-2832 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1132-1141 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1578-1587 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1735-1744 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:2769-2778 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3668-3677 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5697-5706 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6606-6613 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10079-10088 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certcli/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 80 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8–10 lines × 21) · ×1
  • Duplicated block (8–10 lines × 21) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:440 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:440-449 | REDACTED:2513-2522 | crates/libs/windows/src/Windows/Win32/commdlg/mod.rs:526-535 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:496-505 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3519-3528 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:958-965 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:218-227 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:20644-20653 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20136-20145 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36451-36460 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:2952-2961 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:473-482 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1381-1390 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1452-1461 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:810-819 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2974-2983 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8463-8472 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:11494-11503 | crates/libs/windows/src/Windows/Win32/evr/mod.rs:816-825 | crates/libs/windows/src/Windows/Win32/fhcfg/mod.rs:469-478 | crates/libs/windows/src/Windows/Win32/gpedit/mod.rs:653-662 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (10 lines × 12) · ×1
  • Duplicated block (10 lines × 12) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:4073 — crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:4073-4082 | REDACTED:3245-3254 | REDACTED:3345-3354 | REDACTED:3445-3454 | REDACTED:3545-3554 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:335-344 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:415-424 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5455-5464 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:580-589 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:681-690 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:162-171 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:452-461 — `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` and `crates/libs/windows/src/Windows/Win32/comcat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (10 lines × 8) · ×1
  • Duplicated block (10 lines × 8) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12827 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12827-12836 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12908-12917 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13102-13111 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13186-13195 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13351-13360 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13435-13444 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13516-13525 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13723-13732 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8–10 lines × 6) · ×1
  • Duplicated block (8–10 lines × 6) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1178 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1178-1187 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1365-1372 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1490-1499 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1790-1799 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1862-1869 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2023-2032 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8–10 lines × 5) · ×1
  • Duplicated block (8–10 lines × 5) crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1790 — crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1790-1799 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:655-662 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7924-7933 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:73-80 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1801-1808 — `crates/libs/windows/src/Windows/Win32/comadmin/mod.rs` and `crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9–10 lines × 4) · ×1
  • Duplicated block (9–10 lines × 4) crates/libs/future/src/bindings.rs:860 — crates/libs/future/src/bindings.rs:860-868 | crates/libs/future/src/bindings.rs:1144-1153 | crates/libs/future/src/bindings.rs:1542-1551 | crates/libs/future/src/bindings.rs:1886-1895 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9–10 lines × 3) · ×1
  • Duplicated block (9–10 lines × 3) crates/libs/collections/src/bindings.rs:463 — crates/libs/collections/src/bindings.rs:463-472 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4355-4363 | crates/libs/windows/src/Windows/Foundation/mod.rs:1601-1609 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (1–10 lines × 30) · ×1
  • Duplicated block (1–10 lines × 30) crates/libs/collections/src/bindings.rs:2086 — crates/libs/collections/src/bindings.rs:2086-2095 | crates/libs/collections/src/bindings.rs:2649-2658 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:390-391 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:392-392 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:580-581 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:582-582 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1200-1201 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1202-1202 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:192-193 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:194-194 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:458-459 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:460-460 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1842-1843 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1844-1844 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3627-3628 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3629-3629 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3731-3732 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3733-3733 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:238-239 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:240-240 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:96-97 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:98-98 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:59-60 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:61-61 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:350-351 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:352-352 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1594-1595 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1596-1596 | crates/libs/windows/src/Windows/Web/Http/mod.rs:515-516 | crates/libs/windows/src/Windows/Web/Http/mod.rs:517-517 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/windows/src/Windows/Storage/Search/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 40) · ×1
  • Duplicated block (9 lines × 40) crates/libs/reactor/src/native/winui/bindings.rs:21862 — crates/libs/reactor/src/native/winui/bindings.rs:21862-21870 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:177-185 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4580-4588 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4898-4906 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4924-4932 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1780-1788 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1793-1801 | crates/libs/windows/src/Windows/Devices/I2c/mod.rs:377-385 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:153-161 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:166-174 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1085-1093 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1313-1321 | crates/libs/windows/src/Windows/Foundation/mod.rs:252-260 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1049-1057 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1062-1070 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1075-1083 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1562-1570 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1575-1583 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:321-329 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:346-354 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:359-367 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:372-380 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:501-509 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1103-1111 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1407-1415 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1504-1512 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1568-1576 | crates/libs/windows/src/Windows/Storage/mod.rs:1760-1768 | crates/libs/windows/src/Windows/Storage/mod.rs:1812-1820 | crates/libs/windows/src/Windows/Storage/mod.rs:2233-2241 | crates/libs/windows/src/Windows/Storage/mod.rs:2259-2267 | crates/libs/windows/src/Windows/Storage/mod.rs:2285-2293 | crates/libs/windows/src/Windows/Storage/mod.rs:2298-2306 | crates/libs/windows/src/Windows/Storage/mod.rs:2311-2319 | crates/libs/windows/src/Windows/Storage/mod.rs:2442-2450 | crates/libs/windows/src/Windows/Storage/mod.rs:2595-2603 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:122-130 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:135-143 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:196-204 | crates/libs/windows/src/Windows/Web/UI/mod.rs:648-656 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8–9 lines × 39) · ×1
  • Duplicated block (8–9 lines × 39) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2890 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2890-2898 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2952-2959 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3069-3077 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:581-589 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:696-704 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3819-3827 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4654-4662 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16016-16024 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4696-4704 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10874-10882 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5284-5292 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12402-12409 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:220-228 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:4928-4936 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1056-1064 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2257-2265 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2340-2348 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2481-2489 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2939-2947 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3127-3135 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3205-3213 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3262-3269 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4034-4041 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5308-5316 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5861-5869 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6198-6205 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6680-6688 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6884-6892 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7322-7330 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7640-7648 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7766-7774 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8557-8565 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8650-8658 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2374-2382 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2726-2734 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3821-3828 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:898-906 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1270-1278 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2259-2267 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9 lines × 34) · ×1
  • Duplicated block (9 lines × 34) crates/libs/collections/src/bindings.rs:2179 — crates/libs/collections/src/bindings.rs:2179-2187 | crates/libs/collections/src/bindings.rs:2718-2726 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4451-4459 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:882-890 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1596-1604 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:579-587 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:592-600 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:673-681 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:686-694 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1693-1701 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:2414-2422 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:2427-2435 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1784-1792 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:755-763 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:794-802 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:846-854 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:859-867 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:872-880 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:885-893 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:898-906 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1110-1118 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1243-1251 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1280-1288 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2277-2285 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2290-2298 | crates/libs/windows/src/Windows/Storage/mod.rs:1721-1729 | crates/libs/windows/src/Windows/Storage/mod.rs:1922-1930 | crates/libs/windows/src/Windows/Storage/mod.rs:2634-2642 | crates/libs/windows/src/Windows/Storage/mod.rs:2982-2990 | crates/libs/windows/src/Windows/Storage/mod.rs:2995-3003 | crates/libs/windows/src/Windows/Storage/mod.rs:3008-3016 | crates/libs/windows/src/Windows/Storage/mod.rs:3208-3216 | crates/libs/windows/src/Windows/Storage/mod.rs:3221-3229 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1621-1629 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 18) · ×1
  • Duplicated block (9 lines × 18) crates/libs/webview/src/bindings.rs:828 — crates/libs/webview/src/bindings.rs:828-836 | crates/libs/webview/src/bindings.rs:951-959 | crates/libs/webview/src/bindings.rs:1125-1133 | crates/libs/webview/src/bindings.rs:1225-1233 | crates/libs/webview/src/bindings.rs:2329-2337 | crates/libs/webview/src/bindings.rs:2438-2446 | crates/libs/webview/src/bindings.rs:2841-2849 | crates/libs/webview/src/bindings.rs:3715-3723 | crates/libs/webview/src/bindings.rs:4008-4016 | crates/libs/webview/src/bindings.rs:4109-4117 | crates/libs/webview/src/bindings.rs:4264-4272 | crates/libs/webview/src/bindings.rs:4423-4431 | crates/libs/webview/src/bindings.rs:4584-4592 | crates/libs/webview/src/bindings.rs:4672-4680 | crates/libs/webview/src/bindings.rs:5560-5568 | crates/libs/webview/src/bindings.rs:5678-5686 | crates/libs/webview/src/bindings.rs:5842-5850 | crates/libs/webview/src/bindings.rs:5918-5926 — all 18 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9 lines × 12) · ×1
  • Duplicated block (9 lines × 12) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1541 — crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1541-1549 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:35090-35098 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37670-37678 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38644-38652 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40306-40314 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42551-42559 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44862-44870 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9351-9359 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9378-9386 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9431-9439 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9547-9555 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9615-9623 — `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` and `crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9 lines × 9) · ×1
  • Duplicated block (9 lines × 9) crates/libs/reactor/src/native/winui/bindings.rs:6238 — crates/libs/reactor/src/native/winui/bindings.rs:6238-6246 | crates/libs/reactor/src/native/winui/bindings.rs:9916-9924 | crates/libs/reactor/src/native/winui/bindings.rs:10623-10631 | crates/libs/reactor/src/native/winui/bindings.rs:12197-12205 | crates/libs/reactor/src/native/winui/bindings.rs:13705-13713 | crates/libs/reactor/src/native/winui/bindings.rs:15587-15595 | crates/libs/reactor/src/native/winui/bindings.rs:19536-19544 | crates/libs/reactor/src/native/winui/bindings.rs:20136-20144 | crates/libs/reactor/src/native/winui/bindings.rs:20166-20174 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8–9 lines × 6) · ×1
  • Duplicated block (8–9 lines × 6) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:861 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:861-868 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3196-3204 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3359-3367 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3582-3590 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:372-380 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1520-1528 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenc/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (1–9 lines × 36) · ×1
  • Duplicated block (1–9 lines × 36) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3125 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3125-3125 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:80-80 | REDACTED:2562-2562 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1752-1752 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2198-2198 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:2693-2693 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2245-2245 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:1224-1224 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:2885-2885 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4956-4956 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:11325-11325 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18710-18710 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2385-2385 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2541-2541 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:1282-1285 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:1411-1419 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:1597-1605 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:1801-1809 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:671-671 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2871-2871 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:1714-1714 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4402-4402 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4708-4708 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5669-5669 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5710-5710 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9067-9067 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9700-9700 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:10803-10803 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:11329-11329 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:11433-11433 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:5004-5004 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:679-679 | crates/libs/windows/src/Windows/Win32/evr/mod.rs:345-345 | crates/libs/windows/src/Windows/Win32/evr/mod.rs:926-926 | crates/libs/windows/src/Windows/Win32/filtereg/mod.rs:82-82 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4450-4450 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (7–9 lines × 2) · ×1
  • Duplicated block (7–9 lines × 2) crates/libs/rdl/src/reader/delegate.rs:83 — crates/libs/rdl/src/reader/delegate.rs:83-89 | crates/libs/rdl/src/reader/interface.rs:155-163 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (8 lines × 197) · ×1
  • Duplicated block (8 lines × 197) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:781 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:781-788 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2842-2849 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2854-2861 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2878-2885 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2890-2897 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2952-2959 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3051-3058 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3069-3076 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3311-3318 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:569-576 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:581-588 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:372-379 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:414-421 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:648-655 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:660-667 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:696-703 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:255-262 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:463-470 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:628-635 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:552-559 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:564-571 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3118-3125 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3819-3826 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4064-4071 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4654-4661 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11063-11070 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11368-11375 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11781-11788 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16016-16023 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16281-16288 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:17043-17050 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:755-762 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:112-119 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5358-5365 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9362-9369 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9478-9485 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3103-3110 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4005-4012 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4017-4024 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4029-4036 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4065-4072 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4089-4096 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4101-4108 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4113-4120 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4405-4412 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4417-4424 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4618-4625 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4630-4637 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4642-4649 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4654-4661 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4696-4703 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5753-5760 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5765-5772 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5789-5796 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5801-5808 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5813-5820 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5825-5832 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5837-5844 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6017-6024 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6041-6048 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9600-9607 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9612-9619 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9630-9637 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9642-9649 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9654-9661 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9666-9673 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9678-9685 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9690-9697 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10850-10857 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10862-10869 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10874-10881 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4038-4045 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4050-4057 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4062-4069 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5284-5291 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9603-9610 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9615-9622 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12402-12409 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14675-14682 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14687-14694 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14711-14718 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2992-2999 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3994-4001 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5831-5838 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16171-16178 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17885-17892 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19800-19807 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22335-22342 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22827-22834 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25323-25330 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25815-25822 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28373-28380 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28865-28872 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31452-31459 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31944-31951 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37809-37816 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38783-38790 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40445-40452 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40721-40728 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42690-42697 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42966-42973 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45001-45008 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45277-45284 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:220-227 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:307-314 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:325-332 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1087-1094 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1376-1383 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1400-1407 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1412-1419 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1508-1515 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1568-1575 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1893-1900 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1905-1912 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1977-1984 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2037-2044 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:4916-4923 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:4928-4935 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1056-1063 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:282-289 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2053-2060 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2077-2084 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2089-2096 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2101-2108 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2137-2144 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2161-2168 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2197-2204 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2209-2216 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2245-2252 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2257-2264 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2340-2347 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2457-2464 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2469-2476 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2481-2488 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2612-2619 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2624-2631 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2636-2643 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2648-2655 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2786-2793 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2939-2946 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3055-3062 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3067-3074 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3091-3098 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3103-3110 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3127-3134 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3205-3212 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3262-3269 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3923-3930 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4034-4041 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5308-5315 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5849-5856 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5861-5868 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6002-6009 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6198-6205 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6668-6675 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6680-6687 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6842-6849 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6872-6879 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6884-6891 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7023-7030 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7047-7054 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7059-7066 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7071-7078 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7322-7329 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7640-7647 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7742-7749 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7766-7773 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7911-7918 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8533-8540 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8557-8564 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8650-8657 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2032-2039 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2278-2285 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2290-2297 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2374-2381 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2714-2721 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2726-2733 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3821-3828 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:898-905 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1270-1277 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3219-3226 | crates/libs/windows/src/Windows/Win32/fhcfg/mod.rs:162-169 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:453-460 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:489-496 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2259-2266 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:192-199 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:216-223 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:228-235 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:240-247 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:561-568 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:859-866 | crates/libs/windows/src/Windows/Win32/gameux/mod.rs:443-450 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:966-973 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1020-1027 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1271-1278 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10194-10201 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10212-10219 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 185) · ×1
  • Duplicated block (8 lines × 185) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:781 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:781-788 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2842-2849 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2854-2861 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2878-2885 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3051-3058 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3311-3318 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:569-576 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:196-203 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:372-379 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:402-409 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:414-421 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:678-685 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1653-1660 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:513-520 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:648-655 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:660-667 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:684-691 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:255-262 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:463-470 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:628-635 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:552-559 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:564-571 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3118-3125 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4052-4059 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4064-4071 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4472-4479 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11063-11070 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11368-11375 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11781-11788 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15128-15135 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16281-16288 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:17043-17050 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:131-138 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:155-162 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:167-174 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:404-411 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:428-435 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:446-453 | crates/libs/windows/src/Windows/Win32/certmod/mod.rs:59-66 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:755-762 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:491-498 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:954-961 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1014-1021 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:112-119 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5358-5365 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9362-9369 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9386-9393 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9478-9485 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3103-3110 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4005-4012 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4017-4024 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4029-4036 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4065-4072 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4089-4096 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4101-4108 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4113-4120 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4405-4412 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4417-4424 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4618-4625 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4630-4637 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4642-4649 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4654-4661 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5753-5760 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5765-5772 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5789-5796 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5801-5808 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5813-5820 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5825-5832 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5837-5844 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6017-6024 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6041-6048 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9600-9607 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9612-9619 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9630-9637 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9642-9649 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9654-9661 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9666-9673 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9678-9685 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9690-9697 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10850-10857 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10862-10869 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4038-4045 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4050-4057 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4062-4069 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5272-5279 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9603-9610 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9615-9622 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14675-14682 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14687-14694 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14711-14718 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2992-2999 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3994-4001 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5831-5838 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16171-16178 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17885-17892 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19800-19807 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22335-22342 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22827-22834 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25323-25330 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25815-25822 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28373-28380 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28865-28872 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31452-31459 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31944-31951 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37809-37816 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38783-38790 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40445-40452 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40721-40728 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42690-42697 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42966-42973 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45001-45008 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45277-45284 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:307-314 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:325-332 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1087-1094 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1376-1383 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1400-1407 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1412-1419 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1508-1515 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1568-1575 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1893-1900 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1905-1912 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:1977-1984 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2037-2044 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:4916-4923 | crates/libs/windows/src/Windows/Win32/docobj/mod.rs:282-289 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2053-2060 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2077-2084 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2089-2096 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2101-2108 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2137-2144 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2161-2168 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2197-2204 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2209-2216 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2245-2252 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2457-2464 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2469-2476 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2612-2619 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2624-2631 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2636-2643 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2648-2655 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2786-2793 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3055-3062 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3067-3074 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3091-3098 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3103-3110 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3923-3930 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5849-5856 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6002-6009 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6668-6675 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6842-6849 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6872-6879 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7023-7030 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7047-7054 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7059-7066 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7071-7078 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7742-7749 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7911-7918 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8533-8540 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2032-2039 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2278-2285 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2290-2297 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2714-2721 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3219-3226 | crates/libs/windows/src/Windows/Win32/fhcfg/mod.rs:162-169 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:453-460 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:477-484 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:489-496 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:513-520 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:549-556 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:561-568 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:192-199 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:216-223 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:228-235 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:240-247 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:561-568 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:859-866 | crates/libs/windows/src/Windows/Win32/gameux/mod.rs:443-450 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:966-973 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1020-1027 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1271-1278 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1398-1405 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8776-8783 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10194-10201 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10212-10219 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 97) · ×1
  • Duplicated block (8 lines × 97) crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1200 — crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1200-1207 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:422-429 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:446-453 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:616-623 | crates/libs/windows/src/Windows/Win32/certpol/mod.rs:63-70 | crates/libs/windows/src/Windows/Win32/comcat/mod.rs:100-107 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:274-281 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:286-293 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:310-317 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:334-341 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5271-5278 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5427-5434 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:551-558 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:925-932 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:937-944 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:967-974 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4173-4180 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6931-6938 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6943-6950 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6955-6962 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6967-6974 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:7003-7010 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:7015-7022 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:4176-4183 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8875-8882 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8959-8966 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6272-6279 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14112-14119 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14771-14778 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14807-14814 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14923-14930 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:13394-13401 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2311-2318 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2347-2354 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:4348-4355 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:4366-4373 | crates/libs/windows/src/Windows/Win32/d3dcommon/mod.rs:768-775 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15805-15812 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15823-15830 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17519-17526 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17537-17544 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19434-19441 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19452-19459 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:21969-21976 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:21987-21994 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22671-22678 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:24957-24964 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:24975-24982 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25659-25666 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28007-28014 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28025-28032 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28709-28716 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31086-31093 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31104-31111 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31788-31795 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32609-32616 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33021-33028 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33525-33532 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34166-34173 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34388-34395 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37719-37726 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38693-38700 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40355-40362 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40997-41004 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:41033-41040 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42600-42607 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:43242-43249 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:43278-43285 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44911-44918 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45553-45560 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45589-45596 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:980-987 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:992-999 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1196-1203 | crates/libs/windows/src/Windows/Win32/directmanipulation/mod.rs:1102-1109 | crates/libs/windows/src/Windows/Win32/directmanipulation/mod.rs:1478-1485 | crates/libs/windows/src/Windows/Win32/dispex/mod.rs:302-309 | crates/libs/windows/src/Windows/Win32/dispex/mod.rs:326-333 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:3067-3074 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:3079-3086 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4382-4389 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4579-4586 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4934-4941 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5040-5047 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8078-8085 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8545-8552 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9122-9129 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:9134-9141 | crates/libs/windows/src/Windows/Win32/dxcore_interface/mod.rs:559-566 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2314-2321 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2344-2351 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1246-1253 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1258-1265 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3177-3184 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3189-3196 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:954-961 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4436-4443 — `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` and `crates/libs/windows/src/Windows/Win32/comcat/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 78) · ×1
  • Duplicated block (8 lines × 78) crates/libs/reactor/src/native/winui/bindings.rs:77 — crates/libs/reactor/src/native/winui/bindings.rs:77-84 | crates/libs/reactor/src/native/winui/bindings.rs:149-156 | crates/libs/reactor/src/native/winui/bindings.rs:736-743 | crates/libs/reactor/src/native/winui/bindings.rs:1040-1047 | crates/libs/reactor/src/native/winui/bindings.rs:1162-1169 | crates/libs/reactor/src/native/winui/bindings.rs:1255-1262 | crates/libs/reactor/src/native/winui/bindings.rs:1386-1393 | crates/libs/reactor/src/native/winui/bindings.rs:1495-1502 | crates/libs/reactor/src/native/winui/bindings.rs:1635-1642 | crates/libs/reactor/src/native/winui/bindings.rs:1732-1739 | crates/libs/reactor/src/native/winui/bindings.rs:1924-1931 | crates/libs/reactor/src/native/winui/bindings.rs:2008-2015 | crates/libs/reactor/src/native/winui/bindings.rs:2057-2064 | crates/libs/reactor/src/native/winui/bindings.rs:2240-2247 | crates/libs/reactor/src/native/winui/bindings.rs:2296-2303 | crates/libs/reactor/src/native/winui/bindings.rs:2813-2820 | crates/libs/reactor/src/native/winui/bindings.rs:3050-3057 | crates/libs/reactor/src/native/winui/bindings.rs:3420-3427 | crates/libs/reactor/src/native/winui/bindings.rs:3817-3824 | crates/libs/reactor/src/native/winui/bindings.rs:3891-3898 | crates/libs/reactor/src/native/winui/bindings.rs:3936-3943 | crates/libs/reactor/src/native/winui/bindings.rs:4062-4069 | crates/libs/reactor/src/native/winui/bindings.rs:4373-4380 | crates/libs/reactor/src/native/winui/bindings.rs:4579-4586 | crates/libs/reactor/src/native/winui/bindings.rs:4636-4643 | crates/libs/reactor/src/native/winui/bindings.rs:4768-4775 | crates/libs/reactor/src/native/winui/bindings.rs:22219-22226 | crates/libs/reactor/src/native/winui/bindings.rs:22364-22371 | crates/libs/reactor/src/native/winui/bindings.rs:22436-22443 | crates/libs/reactor/src/native/winui/bindings.rs:22865-22872 | crates/libs/reactor/src/native/winui/bindings.rs:23020-23027 | crates/libs/reactor/src/native/winui/bindings.rs:23284-23291 | crates/libs/reactor/src/native/winui/bindings.rs:23341-23348 | crates/libs/reactor/src/native/winui/bindings.rs:23399-23406 | crates/libs/reactor/src/native/winui/bindings.rs:23531-23538 | crates/libs/reactor/src/native/winui/bindings.rs:23605-23612 | crates/libs/reactor/src/native/winui/bindings.rs:23660-23667 | crates/libs/reactor/src/native/winui/bindings.rs:23726-23733 | crates/libs/reactor/src/native/winui/bindings.rs:23782-23789 | crates/libs/reactor/src/native/winui/bindings.rs:23935-23942 | crates/libs/reactor/src/native/winui/bindings.rs:24041-24048 | crates/libs/reactor/src/native/winui/bindings.rs:24112-24119 | crates/libs/reactor/src/native/winui/bindings.rs:24329-24336 | crates/libs/reactor/src/native/winui/bindings.rs:24528-24535 | crates/libs/reactor/src/native/winui/bindings.rs:24902-24909 | crates/libs/reactor/src/native/winui/bindings.rs:24974-24981 | crates/libs/reactor/src/native/winui/bindings.rs:25053-25060 | crates/libs/reactor/src/native/winui/bindings.rs:25136-25143 | crates/libs/reactor/src/native/winui/bindings.rs:25401-25408 | crates/libs/reactor/src/native/winui/bindings.rs:25493-25500 | crates/libs/reactor/src/native/winui/bindings.rs:25609-25616 | crates/libs/reactor/src/native/winui/bindings.rs:25681-25688 | crates/libs/reactor/src/native/winui/bindings.rs:25937-25944 | crates/libs/reactor/src/native/winui/bindings.rs:26133-26140 | crates/libs/reactor/src/native/winui/bindings.rs:26494-26501 | crates/libs/reactor/src/native/winui/bindings.rs:26878-26885 | crates/libs/reactor/src/native/winui/bindings.rs:26953-26960 | crates/libs/reactor/src/native/winui/bindings.rs:27272-27279 | crates/libs/reactor/src/native/winui/bindings.rs:27328-27335 | crates/libs/reactor/src/native/winui/bindings.rs:27654-27661 | crates/libs/reactor/src/native/winui/bindings.rs:27806-27813 | crates/libs/reactor/src/native/winui/bindings.rs:27888-27895 | crates/libs/reactor/src/native/winui/bindings.rs:28007-28014 | crates/libs/reactor/src/native/winui/bindings.rs:28123-28130 | crates/libs/reactor/src/native/winui/bindings.rs:28179-28186 | crates/libs/reactor/src/native/winui/bindings.rs:28539-28546 | crates/libs/reactor/src/native/winui/bindings.rs:28634-28641 | crates/libs/reactor/src/native/winui/bindings.rs:28745-28752 | crates/libs/reactor/src/native/winui/bindings.rs:29063-29070 | crates/libs/reactor/src/native/winui/bindings.rs:29413-29420 | crates/libs/reactor/src/native/winui/bindings.rs:29525-29532 | crates/libs/reactor/src/native/winui/bindings.rs:29670-29677 | crates/libs/reactor/src/native/winui/bindings.rs:29811-29818 | crates/libs/reactor/src/native/winui/bindings.rs:30005-30012 | crates/libs/reactor/src/native/winui/bindings.rs:30098-30105 | crates/libs/reactor/src/native/winui/bindings.rs:30511-30518 | crates/libs/reactor/src/native/winui/bindings.rs:30907-30914 | crates/libs/reactor/src/native/winui/bindings.rs:30951-30958 — all 78 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8 lines × 70) · ×1
  • Duplicated block (8 lines × 70) crates/libs/collections/src/bindings.rs:1395 — crates/libs/collections/src/bindings.rs:1395-1402 | crates/libs/collections/src/bindings.rs:1668-1675 | crates/libs/composition/src/bindings.rs:1708-1715 | crates/libs/composition/src/bindings_lifted.rs:1502-1509 | crates/libs/reactor/src/native/winui/bindings.rs:5451-5458 | crates/libs/reactor/src/native/winui/bindings.rs:5480-5487 | crates/libs/reactor/src/native/winui/bindings.rs:6085-6092 | crates/libs/reactor/src/native/winui/bindings.rs:6248-6255 | crates/libs/reactor/src/native/winui/bindings.rs:6389-6396 | crates/libs/reactor/src/native/winui/bindings.rs:6601-6608 | crates/libs/reactor/src/native/winui/bindings.rs:7091-7098 | crates/libs/reactor/src/native/winui/bindings.rs:7773-7780 | crates/libs/reactor/src/native/winui/bindings.rs:8459-8466 | crates/libs/reactor/src/native/winui/bindings.rs:8856-8863 | crates/libs/reactor/src/native/winui/bindings.rs:9509-9516 | crates/libs/reactor/src/native/winui/bindings.rs:9539-9546 | crates/libs/reactor/src/native/winui/bindings.rs:9926-9933 | crates/libs/reactor/src/native/winui/bindings.rs:9958-9965 | crates/libs/reactor/src/native/winui/bindings.rs:9991-9998 | crates/libs/reactor/src/native/winui/bindings.rs:10603-10610 | crates/libs/reactor/src/native/winui/bindings.rs:10633-10640 | crates/libs/reactor/src/native/winui/bindings.rs:10910-10917 | crates/libs/reactor/src/native/winui/bindings.rs:11093-11100 | crates/libs/reactor/src/native/winui/bindings.rs:11528-11535 | crates/libs/reactor/src/native/winui/bindings.rs:11858-11865 | crates/libs/reactor/src/native/winui/bindings.rs:12207-12214 | crates/libs/reactor/src/native/winui/bindings.rs:12596-12603 | crates/libs/reactor/src/native/winui/bindings.rs:12636-12643 | crates/libs/reactor/src/native/winui/bindings.rs:13257-13264 | crates/libs/reactor/src/native/winui/bindings.rs:13715-13722 | crates/libs/reactor/src/native/winui/bindings.rs:14041-14048 | crates/libs/reactor/src/native/winui/bindings.rs:14723-14730 | crates/libs/reactor/src/native/winui/bindings.rs:14955-14962 | crates/libs/reactor/src/native/winui/bindings.rs:15121-15128 | crates/libs/reactor/src/native/winui/bindings.rs:15597-15604 | crates/libs/reactor/src/native/winui/bindings.rs:16341-16348 | crates/libs/reactor/src/native/winui/bindings.rs:16444-16451 | crates/libs/reactor/src/native/winui/bindings.rs:17000-17007 | crates/libs/reactor/src/native/winui/bindings.rs:17494-17501 | crates/libs/reactor/src/native/winui/bindings.rs:17665-17672 | crates/libs/reactor/src/native/winui/bindings.rs:17697-17704 | crates/libs/reactor/src/native/winui/bindings.rs:17726-17733 | crates/libs/reactor/src/native/winui/bindings.rs:17798-17805 | crates/libs/reactor/src/native/winui/bindings.rs:18170-18177 | crates/libs/reactor/src/native/winui/bindings.rs:18200-18207 | crates/libs/reactor/src/native/winui/bindings.rs:18664-18671 | crates/libs/reactor/src/native/winui/bindings.rs:19011-19018 | crates/libs/reactor/src/native/winui/bindings.rs:19233-19240 | crates/libs/reactor/src/native/winui/bindings.rs:19265-19272 | crates/libs/reactor/src/native/winui/bindings.rs:19546-19553 | crates/libs/reactor/src/native/winui/bindings.rs:19754-19761 | crates/libs/reactor/src/native/winui/bindings.rs:20119-20126 | crates/libs/reactor/src/native/winui/bindings.rs:20146-20153 | crates/libs/reactor/src/native/winui/bindings.rs:20176-20183 | crates/libs/reactor/src/native/winui/bindings.rs:20209-20216 | crates/libs/reactor/src/native/winui/bindings.rs:20239-20246 | crates/libs/reactor/src/native/winui/bindings.rs:20269-20276 | crates/libs/reactor/src/native/winui/bindings.rs:20296-20303 | crates/libs/reactor/src/native/winui/bindings.rs:20323-20330 | crates/libs/reactor/src/native/winui/bindings.rs:20355-20362 | crates/libs/reactor/src/native/winui/bindings.rs:20387-20394 | crates/libs/reactor/src/native/winui/bindings.rs:20419-20426 | crates/libs/reactor/src/native/winui/bindings.rs:20451-20458 | crates/libs/reactor/src/native/winui/bindings.rs:20483-20490 | crates/libs/reactor/src/native/winui/bindings.rs:20515-20522 | crates/libs/reactor/src/native/winui/bindings.rs:20547-20554 | crates/libs/reactor/src/native/winui/bindings.rs:20577-20584 | crates/libs/reactor/src/native/winui/bindings.rs:21403-21410 | crates/libs/reactor/src/native/winui/bindings.rs:21544-21551 | crates/libs/reactor/src/native/winui/bindings.rs:22016-22023 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 53) · ×1
  • Duplicated block (8 lines × 53) crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:422 — crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:422-429 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:446-453 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:462-469 | crates/libs/windows/src/Windows/Win32/certpol/mod.rs:63-70 | crates/libs/windows/src/Windows/Win32/commdlg/mod.rs:526-533 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5271-5278 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:967-974 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4173-4180 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6931-6938 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6943-6950 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6955-6962 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:6967-6974 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8875-8882 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8959-8966 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6617-6624 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14112-14119 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14196-14203 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14807-14814 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14923-14930 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14941-14948 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:15254-15261 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2311-2318 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2347-2354 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15805-15812 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17519-17526 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19434-19441 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:21969-21976 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:24957-24964 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28007-28014 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31086-31093 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:32609-32616 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33021-33028 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33525-33532 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34166-34173 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:34388-34395 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:992-999 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:3067-3074 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:3079-3086 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4382-4389 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4579-4586 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4934-4941 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4946-4953 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5040-5047 | crates/libs/windows/src/Windows/Win32/dxcore_interface/mod.rs:559-566 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3769-3776 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1246-1253 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1258-1265 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3177-3184 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3189-3196 | crates/libs/windows/src/Windows/Win32/filter/mod.rs:221-228 | crates/libs/windows/src/Windows/Win32/gpedit/mod.rs:653-660 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:954-961 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4436-4443 — `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` and `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 51) · ×1
  • Duplicated block (8 lines × 51) crates/libs/windows/src/Windows/Win32/certcli/mod.rs:465 — crates/libs/windows/src/Windows/Win32/certcli/mod.rs:465-472 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:636-643 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10323-10330 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:158-165 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:15775-15782 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16225-16232 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17489-17496 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17939-17946 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19404-19411 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19854-19861 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:21939-21946 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22389-22396 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22749-22756 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22875-22882 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:24927-24934 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25377-25384 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25737-25744 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25863-25870 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:27977-27984 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28427-28434 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28787-28794 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28913-28920 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31056-31063 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31506-31513 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31866-31873 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31992-31999 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37621-37628 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37707-37714 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37731-37738 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38595-38602 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38681-38688 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38705-38712 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40257-40264 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40343-40350 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40367-40374 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40655-40662 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40691-40698 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:40703-40710 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42502-42509 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42588-42595 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42612-42619 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42900-42907 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42936-42943 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:42948-42955 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44813-44820 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44899-44906 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44923-44930 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45211-45218 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45247-45254 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45259-45266 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2798-2805 — `crates/libs/windows/src/Windows/Win32/certcli/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenroll/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 42) · ×1
  • Duplicated block (8 lines × 42) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2890 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2890-2898 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:2952-2959 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3069-3077 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:581-589 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:696-704 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:576-584 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3819-3827 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4654-4662 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16016-16024 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:4696-4704 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10874-10882 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5284-5292 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12402-12409 | crates/libs/windows/src/Windows/Win32/dbgprop/mod.rs:220-228 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:4928-4936 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1056-1064 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2257-2265 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2340-2348 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2481-2489 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2939-2947 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3127-3135 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3205-3213 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:3262-3269 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4034-4041 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5308-5316 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:5861-5869 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6198-6205 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6680-6688 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6884-6892 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7322-7330 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7640-7648 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7766-7774 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8557-8565 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8650-8658 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2374-2382 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:2726-2734 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3821-3828 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:898-906 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:1270-1278 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:1260-1268 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2259-2267 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6606-6613 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 36) · ×1
  • Duplicated block (8 lines × 36) crates/libs/windows/src/Windows/UI/Input/mod.rs:1454 — crates/libs/windows/src/Windows/UI/Input/mod.rs:1454-1461 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:178-185 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:390-397 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:672-679 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16293-16300 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16574-16581 | crates/libs/windows/src/Windows/Win32/control/mod.rs:198-205 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:11326-11333 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3559-3566 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4375-4382 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5287-5294 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5623-5630 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6288-6295 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6624-6631 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7612-7619 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7948-7955 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9195-9202 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9531-9538 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10790-10797 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11126-11133 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12400-12407 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12736-12743 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14033-14040 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14369-14376 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:16189-16196 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:17903-17910 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:19818-19825 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22353-22360 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:22845-22852 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25341-25348 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:25833-25840 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28391-28398 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:28883-28890 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31470-31477 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:31962-31969 | crates/libs/windows/src/Windows/Win32/dispex/mod.rs:272-279 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certcli/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 80 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 30) · ×1
  • Duplicated block (8 lines × 30) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:196 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:196-203 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:402-409 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:678-685 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1653-1660 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:513-520 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:684-691 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:576-583 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4052-4059 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4472-4479 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15128-15135 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:131-138 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:155-162 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:167-174 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:404-411 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:428-435 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:446-453 | crates/libs/windows/src/Windows/Win32/certmod/mod.rs:59-66 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:491-498 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:954-961 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1014-1021 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9386-9393 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5272-5279 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:1260-1267 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:477-484 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:513-520 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:549-556 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:561-568 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:1398-1405 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6606-6613 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8776-8783 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certcli/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 80 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 22) · ×1
  • Duplicated block (8 lines × 22) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1308 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1308-1315 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1617-1624 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:424-431 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:764-771 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2331-2338 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2575-2582 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2918-2925 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3345-3352 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3980-3987 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4394-4401 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4760-4767 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5037-5044 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5420-5427 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5588-5595 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6749-6756 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10269-10276 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10802-10809 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13835-13842 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14137-14144 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14280-14287 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1435-1442 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1170-1177 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenroll/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 155 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 20) · ×1
  • Duplicated block (8 lines × 20) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3184 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3184-3191 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3558-3565 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3570-3577 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:2644-2651 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:426-433 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1344-1351 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4448-4455 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1495-1502 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5043-5050 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10838-10845 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:9627-9634 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2921-2928 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:2058-2065 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:2118-2125 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1484-1491 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1502-1509 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3626-3633 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3638-3645 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3656-3663 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6932-6939 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 19) · ×1
  • Duplicated block (8 lines × 19) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:208 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:208-215 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16574-16581 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:3559-3566 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:4375-4382 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5287-5294 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:5623-5630 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6288-6295 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:6624-6631 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7612-7619 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7948-7955 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9195-9202 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:9531-9538 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10790-10797 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:11126-11133 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12400-12407 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12736-12743 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14033-14040 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:14369-14376 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:2810-2817 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenroll/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 155 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 18) · ×1
  • Duplicated block (8 lines × 18) crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:474 — crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:474-481 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:820-827 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2381-2388 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2643-2650 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2986-2993 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3419-3426 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4096-4103 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4492-4499 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4816-4823 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5087-5094 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5482-5489 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5650-5657 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6799-6806 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10337-10344 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10876-10883 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13903-13910 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14187-14194 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14336-14343 — all 18 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8 lines × 17) · ×1
  • Duplicated block (8 lines × 17) REDACTED:2513 — REDACTED:2513-2521 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:462-470 | crates/libs/windows/src/Windows/Win32/commdlg/mod.rs:526-534 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:218-226 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:8067-8075 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6617-6625 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14196-14204 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:14941-14949 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:15254-15262 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:20644-20652 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:20136-20144 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2974-2982 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:4946-4954 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:8096-8104 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:3769-3776 | crates/libs/windows/src/Windows/Win32/filter/mod.rs:221-229 | crates/libs/windows/src/Windows/Win32/gpedit/mod.rs:653-661 — `REDACTED` and `crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 10) · ×1
  • Duplicated block (8 lines × 10) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:861 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:861-868 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:906-914 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3196-3204 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3359-3367 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3582-3590 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:3632-3640 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:690-698 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:372-380 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1520-1528 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3668-3676 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (1–8 lines × 5) · ×1
  • Duplicated block (1–8 lines × 5) crates/libs/composition/src/bindings.rs:3361 — crates/libs/composition/src/bindings.rs:3361-3368 | crates/libs/composition/src/bindings_lifted.rs:3174-3181 | crates/libs/reactor/src/native/winui/bindings.rs:30243-30250 | crates/libs/windows/src/Windows/Foundation/mod.rs:2096-2097 | crates/libs/windows/src/Windows/Foundation/mod.rs:2098-2098 — before extracting anything, compare `crates/libs/composition/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×1
  • Duplicated block (7–8 lines × 2) crates/libs/metadata/src/merge/mod.rs:627 — crates/libs/metadata/src/merge/mod.rs:627-634 | crates/libs/metadata/src/merge/remap.rs:255-261 — before extracting anything, compare `crates/libs/metadata/src/merge/mod.rs` and `crates/libs/metadata/src/merge/remap.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7 lines × 12) · ×1
  • Duplicated block (7 lines × 12) crates/libs/windows/src/Windows/Gaming/Input/mod.rs:72 — crates/libs/windows/src/Windows/Gaming/Input/mod.rs:72-78 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:87-93 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:307-313 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:322-328 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:589-595 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:604-610 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1496-1502 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1511-1517 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1778-1784 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1793-1799 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2051-2057 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2066-2072 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (7 lines × 9) · ×1
  • Duplicated block (7 lines × 9) crates/libs/collections/src/bindings.rs:78 — crates/libs/collections/src/bindings.rs:78-84 | crates/libs/collections/src/bindings.rs:782-788 | crates/libs/collections/src/bindings.rs:2211-2217 | crates/libs/core/src/imp/bindings.rs:227-233 | crates/libs/future/src/bindings.rs:1099-1105 | crates/libs/future/src/bindings.rs:1135-1141 | crates/libs/future/src/bindings.rs:1533-1539 | crates/libs/future/src/bindings.rs:1836-1842 | crates/libs/future/src/bindings.rs:1877-1883 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/future/src/bindings.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7 lines × 7) · ×1
  • Duplicated block (7 lines × 7) crates/libs/future/src/bindings.rs:1084 — crates/libs/future/src/bindings.rs:1084-1090 | crates/libs/future/src/bindings.rs:1120-1126 | crates/libs/future/src/bindings.rs:1519-1525 | crates/libs/future/src/bindings.rs:1817-1823 | crates/libs/future/src/bindings.rs:1858-1864 | crates/libs/reactor/src/native/winui/bindings.rs:5319-5325 | crates/libs/reactor/src/native/winui/bindings.rs:9171-9177 — there are 7 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (7 lines × 6) · ×1
  • Duplicated block (7 lines × 6) crates/libs/windows/src/Windows/UI/Core/mod.rs:1030 — crates/libs/windows/src/Windows/UI/Core/mod.rs:1030-1036 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1045-1051 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1060-1066 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1308-1314 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1323-1329 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1338-1344 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (1–7 lines × 29) · ×1
  • Duplicated block (1–7 lines × 29) crates/libs/windows/src/Windows/Win32/amsi/mod.rs:223 — crates/libs/windows/src/Windows/Win32/amsi/mod.rs:223-223 | crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6801-6801 | crates/libs/windows/src/Windows/Win32/audioclient/mod.rs:206-206 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:1794-1794 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3286-3286 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1427-1427 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:1994-1994 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4058-4058 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4135-4135 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:595-595 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12357-12357 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:9629-9629 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:12395-12395 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:12561-12561 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5199-5199 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:4858-4858 | crates/libs/windows/src/Windows/Win32/ddraw/mod.rs:3301-3301 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:2683-2689 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:2833-2839 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:2932-2938 | crates/libs/windows/src/Windows/Win32/dinput/mod.rs:4969-4975 | crates/libs/windows/src/Windows/Win32/directmanipulation/mod.rs:768-768 | crates/libs/windows/src/Windows/Win32/dispex/mod.rs:466-466 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:1132-1132 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2087-2087 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6097-6097 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:7858-7858 | crates/libs/windows/src/Windows/Win32/functiondiscovery/mod.rs:254-254 | crates/libs/windows/src/Windows/Win32/gpedit/mod.rs:252-252 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5–7 lines × 2) · ×1
  • Duplicated block (5–7 lines × 2) crates/libs/collections/src/bindings.rs:1389 — crates/libs/collections/src/bindings.rs:1389-1395 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1115-1119 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (6–7 lines × 2) · ×1
  • Duplicated block (6–7 lines × 2) crates/libs/reactor/src/native/winui/mod.rs:3044 — crates/libs/reactor/src/native/winui/mod.rs:3044-3049 | crates/libs/reactor/src/native/winui/mod.rs:3138-3144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (6 lines × 190) · ×1
  • Duplicated block (6 lines × 190) crates/libs/windows/src/Windows/AI/Actions/mod.rs:459 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:459-464 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7788-7793 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:725-730 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1497-1502 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1657-1662 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1671-1676 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1685-1690 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2904-2909 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3294-3299 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3316-3321 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3418-3423 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3432-3437 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2486-2491 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:444-449 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:464-469 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:348-353 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:447-452 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2893-2898 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2907-2912 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2043-2048 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:198-203 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:219-224 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:239-244 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:259-264 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:738-743 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:302-307 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:316-321 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:330-335 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1092-1097 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1106-1111 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1120-1125 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1243-1248 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1258-1263 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1023-1028 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1486-1491 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1500-1505 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:434-439 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:566-571 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:429-434 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1277-1282 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1816-1821 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2078-2083 | crates/libs/windows/src/Windows/Devices/Power/mod.rs:22-27 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:46-51 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1806-1811 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:240-245 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:647-652 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:91-96 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:224-229 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:147-152 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:161-166 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:175-180 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:457-462 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:471-476 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:599-604 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:637-642 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:657-662 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:678-683 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:728-733 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:1005-1010 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1542-1547 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1556-1561 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:667-672 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:148-153 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1872-1877 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2862-2867 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2876-2881 | crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs:23-28 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:286-291 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:411-416 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1093-1098 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1107-1112 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1967-1972 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2079-2084 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4706-4711 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:5124-5129 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:88-93 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:230-235 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:245-250 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:260-265 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:351-356 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:434-439 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:448-453 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1111-1116 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1642-1647 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1804-1809 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1818-1823 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2076-2081 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2467-2472 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3064-3069 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6531-6536 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6571-6576 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7248-7253 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:35-40 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:284-289 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2895-2900 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3791-3796 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4343-4348 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4626-4631 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5254-5259 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5268-5273 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5282-5287 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5296-5301 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5310-5315 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5419-5424 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5433-5438 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5479-5484 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5493-5498 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5507-5512 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:267-272 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:31-36 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:253-258 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:382-387 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:643-648 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:657-662 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:801-806 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:898-903 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:602-607 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:616-621 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:700-705 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:714-719 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1551-1556 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2183-2188 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3038-3043 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3052-3057 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3066-3071 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3080-3085 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3094-3099 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3108-3113 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3122-3127 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3136-3141 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3150-3155 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3164-3169 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3277-3282 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3292-3297 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3307-3312 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3322-3327 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3887-3892 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3901-3906 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3929-3934 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3971-3976 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3985-3990 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3999-4004 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4013-4018 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4069-4074 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4084-4089 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4214-4219 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4265-4270 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:164-169 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:132-137 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:660-665 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:884-889 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:912-917 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3139-3144 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3153-3158 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4341-4346 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:696-701 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:710-715 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:239-244 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1153-1158 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1303-1308 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1007-1012 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1539-1544 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2168-2173 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1073-1078 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1087-1092 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:119-124 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:571-576 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1310-1315 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1067-1072 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1081-1086 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2358-2363 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1711-1716 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1726-1731 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3111-3116 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3139-3144 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3600-3605 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2887-2892 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3274-3279 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:84-89 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:31-36 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:186-191 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1946-1951 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1968-1973 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1990-1995 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:2136-2141 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4459-4464 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:817-822 | crates/libs/windows/src/Windows/Web/UI/mod.rs:283-288 | crates/libs/windows/src/Windows/Web/UI/mod.rs:353-358 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 42) · ×1
  • Duplicated block (6 lines × 42) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:17 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:17-22 | crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs:212-217 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs:110-115 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1390-1395 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2842-2847 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2973-2978 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:884-889 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1358-1363 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:333-338 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:347-352 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:128-133 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:148-153 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:155-160 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:498-503 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:758-763 | crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs:110-115 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2643-2648 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:130-135 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:923-928 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3142-3147 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:293-298 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:307-312 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:429-434 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:492-497 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:506-511 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:534-539 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:548-553 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:562-567 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:96-101 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:181-186 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:233-238 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:310-315 | crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs:194-199 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:25-30 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:254-259 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:284-289 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:785-790 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:189-194 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:269-274 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:577-582 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:592-597 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:765-770 — before extracting anything, compare `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` and `crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 28) · ×1
  • Duplicated block (6 lines × 28) crates/libs/windows/src/Windows/UI/Core/mod.rs:461 — crates/libs/windows/src/Windows/UI/Core/mod.rs:461-466 | crates/libs/windows/src/Windows/UI/Core/mod.rs:476-481 | crates/libs/windows/src/Windows/UI/Core/mod.rs:491-496 | crates/libs/windows/src/Windows/UI/Core/mod.rs:506-511 | crates/libs/windows/src/Windows/UI/Core/mod.rs:521-526 | crates/libs/windows/src/Windows/UI/Core/mod.rs:536-541 | crates/libs/windows/src/Windows/UI/Core/mod.rs:551-556 | crates/libs/windows/src/Windows/UI/Core/mod.rs:918-923 | crates/libs/windows/src/Windows/UI/Core/mod.rs:933-938 | crates/libs/windows/src/Windows/UI/Core/mod.rs:948-953 | crates/libs/windows/src/Windows/UI/Core/mod.rs:963-968 | crates/libs/windows/src/Windows/UI/Core/mod.rs:978-983 | crates/libs/windows/src/Windows/UI/Core/mod.rs:993-998 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1008-1013 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2636-2641 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2650-2655 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2664-2669 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2678-2683 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2692-2697 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2706-2711 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2720-2725 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3048-3053 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3063-3068 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3078-3083 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3093-3098 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3108-3113 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3123-3128 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3138-3143 — all 28 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 252) · ×1
  • Duplicated block (5 lines × 252) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:18 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:18-22 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:460-464 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7789-7793 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:726-730 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1498-1502 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1658-1662 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1672-1676 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1686-1690 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2905-2909 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3295-3299 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3317-3321 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3419-3423 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3433-3437 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2487-2491 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:445-449 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:465-469 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:349-353 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:448-452 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2894-2898 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2908-2912 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2044-2048 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:199-203 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:220-224 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:240-244 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:260-264 | crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs:213-217 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:739-743 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs:111-115 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1391-1395 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2843-2847 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2974-2978 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:303-307 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:317-321 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:331-335 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1093-1097 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1107-1111 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1121-1125 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1244-1248 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1259-1263 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:885-889 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1359-1363 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:334-338 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:348-352 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1024-1028 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1487-1491 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1501-1505 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:129-133 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:149-153 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:156-160 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:435-439 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:567-571 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:430-434 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1278-1282 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1817-1821 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2079-2083 | crates/libs/windows/src/Windows/Devices/Power/mod.rs:23-27 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:47-51 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1807-1811 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:241-245 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:499-503 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:759-763 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:648-652 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:92-96 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:225-229 | crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs:111-115 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:148-152 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:162-166 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:176-180 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:458-462 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:472-476 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:600-604 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:638-642 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:658-662 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:679-683 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:729-733 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:1006-1010 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2644-2648 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1543-1547 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1557-1561 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:668-672 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:149-153 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1873-1877 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2863-2867 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2877-2881 | crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs:24-28 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:287-291 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:412-416 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1094-1098 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1108-1112 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1968-1972 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2080-2084 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4707-4711 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:5125-5129 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:131-135 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:924-928 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:89-93 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:231-235 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:246-250 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:261-265 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:352-356 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:435-439 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:449-453 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1112-1116 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1643-1647 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1805-1809 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1819-1823 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2077-2081 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2468-2472 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3065-3069 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6532-6536 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6572-6576 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7249-7253 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:36-40 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:285-289 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2896-2900 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3792-3796 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4344-4348 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4627-4631 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5255-5259 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5269-5273 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5283-5287 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5297-5301 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5311-5315 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5420-5424 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5434-5438 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5480-5484 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5494-5498 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5508-5512 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:268-272 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:32-36 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:254-258 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:383-387 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:644-648 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:658-662 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:802-806 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:899-903 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:603-607 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:617-621 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:701-705 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:715-719 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1552-1556 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2184-2188 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3039-3043 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3053-3057 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3067-3071 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3081-3085 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3095-3099 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3109-3113 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3123-3127 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3137-3141 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3151-3155 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3165-3169 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3278-3282 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3293-3297 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3308-3312 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3323-3327 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3888-3892 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3902-3906 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3930-3934 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3972-3976 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3986-3990 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4000-4004 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4014-4018 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4070-4074 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4085-4089 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4215-4219 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4266-4270 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3143-3147 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:165-169 | crates/libs/windows/src/Windows/Media/mod.rs:1767-1771 | crates/libs/windows/src/Windows/Media/mod.rs:1781-1785 | crates/libs/windows/src/Windows/Media/mod.rs:1834-1838 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:133-137 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:661-665 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:885-889 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:913-917 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3140-3144 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3154-3158 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4342-4346 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:697-701 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:711-715 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:294-298 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:308-312 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:240-244 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:430-434 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1154-1158 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1304-1308 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:496-500 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:493-497 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:507-511 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:535-539 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:549-553 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:563-567 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:97-101 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1008-1012 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1540-1544 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2169-2173 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1074-1078 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1088-1092 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:182-186 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:120-124 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:572-576 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1311-1315 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1068-1072 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1082-1086 | crates/libs/windows/src/Windows/Storage/mod.rs:180-184 | crates/libs/windows/src/Windows/Storage/mod.rs:5177-5181 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:234-238 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:311-315 | crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs:195-199 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2359-2363 | crates/libs/windows/src/Windows/System/mod.rs:181-185 | crates/libs/windows/src/Windows/System/mod.rs:195-199 | crates/libs/windows/src/Windows/System/mod.rs:578-582 | crates/libs/windows/src/Windows/System/mod.rs:592-596 | crates/libs/windows/src/Windows/System/mod.rs:1078-1082 | crates/libs/windows/src/Windows/System/mod.rs:1272-1276 | crates/libs/windows/src/Windows/System/mod.rs:4262-4266 | crates/libs/windows/src/Windows/System/mod.rs:4276-4280 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1712-1716 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1727-1731 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:550-554 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:564-568 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:606-610 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:662-666 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1358-1362 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1400-1404 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3112-3116 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3140-3144 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3601-3605 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2888-2892 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3275-3279 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:26-30 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:85-89 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:255-259 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:285-289 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:786-790 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:190-194 | crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs:270-274 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:32-36 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:187-191 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1947-1951 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1969-1973 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:1991-1995 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:2137-2141 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4460-4464 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:818-822 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:578-582 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:593-597 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:766-770 | crates/libs/windows/src/Windows/Web/UI/mod.rs:284-288 | crates/libs/windows/src/Windows/Web/UI/mod.rs:354-358 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 214) · ×1
  • Duplicated block (5 lines × 214) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:18 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:18-22 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7789-7793 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:726-730 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1498-1502 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1658-1662 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1672-1676 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1686-1690 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2905-2909 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3419-3423 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3433-3437 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2487-2491 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:445-449 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:465-469 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:349-353 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2894-2898 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2908-2912 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2044-2048 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:199-203 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:220-224 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:240-244 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:260-264 | crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs:213-217 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:739-743 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1391-1395 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2843-2847 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2974-2978 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:303-307 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:317-321 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:331-335 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1093-1097 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1107-1111 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1121-1125 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:885-889 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:334-338 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:348-352 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1024-1028 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1487-1491 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1501-1505 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:129-133 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:149-153 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:156-160 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:435-439 | crates/libs/windows/src/Windows/Devices/Input/mod.rs:567-571 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1278-1282 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1817-1821 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2079-2083 | crates/libs/windows/src/Windows/Devices/Power/mod.rs:23-27 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:47-51 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1807-1811 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:241-245 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:499-503 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:759-763 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:648-652 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:651-655 | crates/libs/windows/src/Windows/Foundation/mod.rs:371-375 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:92-96 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:225-229 | crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs:111-115 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:148-152 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:162-166 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:176-180 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:458-462 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:472-476 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:600-604 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:638-642 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:658-662 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:679-683 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2644-2648 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1543-1547 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1557-1561 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:668-672 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:149-153 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1873-1877 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2863-2867 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2877-2881 | crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs:24-28 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:287-291 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:412-416 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1094-1098 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1108-1112 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1968-1972 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2080-2084 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4707-4711 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:5125-5129 | crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs:131-135 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:924-928 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:89-93 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:435-439 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:449-453 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1112-1116 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1643-1647 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1805-1809 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:1819-1823 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2077-2081 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2468-2472 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3065-3069 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7249-7253 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:36-40 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:285-289 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2896-2900 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3792-3796 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4344-4348 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4627-4631 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5255-5259 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5269-5273 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5283-5287 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5297-5301 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5311-5315 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5420-5424 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5434-5438 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5480-5484 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5494-5498 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5508-5512 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:268-272 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:32-36 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:254-258 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:383-387 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:644-648 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:658-662 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:802-806 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:899-903 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:603-607 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:617-621 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:701-705 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:715-719 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1552-1556 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2184-2188 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3039-3043 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3053-3057 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3067-3071 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3081-3085 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3095-3099 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3109-3113 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3123-3127 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3137-3141 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3151-3155 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3165-3169 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3888-3892 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3902-3906 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3930-3934 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3972-3976 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3986-3990 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4000-4004 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4014-4018 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:3143-3147 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:165-169 | crates/libs/windows/src/Windows/Media/mod.rs:1767-1771 | crates/libs/windows/src/Windows/Media/mod.rs:1781-1785 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:133-137 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:661-665 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:885-889 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:913-917 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3140-3144 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3154-3158 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:697-701 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:711-715 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:294-298 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:308-312 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:240-244 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:430-434 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1154-1158 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1304-1308 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:496-500 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:493-497 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:507-511 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:535-539 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:549-553 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:563-567 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:97-101 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1008-1012 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1540-1544 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2169-2173 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1074-1078 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1088-1092 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:182-186 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:120-124 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:572-576 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1311-1315 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1068-1072 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1082-1086 | crates/libs/windows/src/Windows/Storage/mod.rs:180-184 | crates/libs/windows/src/Windows/Storage/mod.rs:5177-5181 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:234-238 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:311-315 | crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs:195-199 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2359-2363 | crates/libs/windows/src/Windows/System/mod.rs:181-185 | crates/libs/windows/src/Windows/System/mod.rs:195-199 | crates/libs/windows/src/Windows/System/mod.rs:578-582 | crates/libs/windows/src/Windows/System/mod.rs:592-596 | crates/libs/windows/src/Windows/System/mod.rs:1078-1082 | crates/libs/windows/src/Windows/System/mod.rs:1272-1276 | crates/libs/windows/src/Windows/System/mod.rs:4262-4266 | crates/libs/windows/src/Windows/System/mod.rs:4276-4280 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:550-554 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:564-568 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:606-610 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:662-666 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1358-1362 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:1400-1404 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3112-3116 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3140-3144 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3601-3605 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2888-2892 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:26-30 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:85-89 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:255-259 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:786-790 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:32-36 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4460-4464 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:818-822 | crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs:766-770 | crates/libs/windows/src/Windows/Web/UI/mod.rs:284-288 | crates/libs/windows/src/Windows/Web/UI/mod.rs:354-358 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 148) · ×1
  • Duplicated block (5 lines × 148) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:97 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:97-101 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:159-163 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:221-225 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:283-287 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:356-360 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:448-452 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:502-506 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:557-561 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:609-613 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:708-712 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:774-778 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:835-839 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:901-905 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:963-967 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1010-1014 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1076-1080 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1142-1146 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1217-1221 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1272-1276 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1355-1359 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1446-1450 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1508-1512 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1571-1575 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1640-1644 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1703-1707 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1867-1871 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1942-1946 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2013-2017 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2083-2087 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2169-2173 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2255-2259 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2352-2356 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2469-2473 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2619-2623 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2692-2696 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2776-2780 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2864-2868 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2948-2952 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3030-3034 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3155-3159 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3272-3276 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3473-3477 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3564-3568 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3694-3698 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3811-3815 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3881-3885 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3965-3969 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4054-4058 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4132-4136 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4222-4226 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4316-4320 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4389-4393 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4483-4487 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4612-4616 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4696-4700 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4847-4851 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4931-4935 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5020-5024 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5108-5112 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5194-5198 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5264-5268 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5353-5357 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5421-5425 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5493-5497 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5565-5569 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5641-5645 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5719-5723 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5795-5799 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5890-5894 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5968-5972 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6046-6050 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6192-6196 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6283-6287 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6373-6377 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6468-6472 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6547-6551 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6623-6627 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6711-6715 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6821-6825 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6900-6904 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6978-6982 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7067-7071 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7121-7125 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7233-7237 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7287-7291 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7333-7337 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7380-7384 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7427-7431 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7511-7515 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7603-7607 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7657-7661 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7740-7744 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7831-7835 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7910-7914 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7978-7982 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8025-8029 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8080-8084 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8139-8143 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8194-8198 | crates/libs/windows/src/Windows/Gaming/UI/mod.rs:241-245 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:602-606 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1254-1258 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1075-1079 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2253-2257 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3169-3173 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1282-1286 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1356-1360 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1430-1434 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1504-1508 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1589-1593 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1778-1782 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1848-1852 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1915-1919 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1979-1983 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2049-2053 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2127-2131 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2200-2204 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2278-2282 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2356-2360 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2415-2419 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2493-2497 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2571-2575 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2650-2654 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2717-2721 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2804-2808 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2892-2896 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2966-2970 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3041-3045 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3122-3126 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3197-3201 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3272-3276 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3365-3369 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3438-3442 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3630-3634 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3700-3704 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3759-3763 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3867-3871 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3955-3959 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4051-4055 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4117-4121 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4196-4200 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4263-4267 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4333-4337 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4406-4410 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4962-4966 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5029-5033 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5100-5104 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5167-5171 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Networking/Vpn/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 82) · ×1
  • Duplicated block (5 lines × 82) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:105 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:105-109 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:167-171 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:229-233 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:291-295 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:364-368 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:456-460 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:510-514 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:617-621 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:909-913 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1150-1154 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1225-1229 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1280-1284 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1363-1367 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1454-1458 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1516-1520 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1579-1583 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1648-1652 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1711-1715 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:6986-6990 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7075-7079 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7241-7245 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7435-7439 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7519-7523 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7611-7615 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7665-7669 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7748-7752 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7839-7843 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:7918-7922 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8033-8037 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:8147-8151 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:146-150 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3243-3247 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:131-135 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:366-370 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:648-652 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1555-1559 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1837-1841 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2110-2114 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:610-614 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1262-1266 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1083-1087 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2261-2265 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3177-3181 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:1533-1537 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1291-1295 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:181-185 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:499-503 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:607-611 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:981-985 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1144-1148 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2742-2746 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:132-136 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1297-1301 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1371-1375 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1445-1449 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1519-1523 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1604-1608 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1793-1797 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1863-1867 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1994-1998 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2293-2297 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2586-2590 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2665-2669 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2732-2736 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2819-2823 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2907-2911 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2981-2985 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3056-3060 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3137-3141 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3212-3216 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3287-3291 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3380-3384 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3645-3649 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3882-3886 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3970-3974 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4066-4070 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4211-4215 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4278-4282 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4348-4352 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4977-4981 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5115-5119 | crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs:168-172 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 63 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5 lines × 61) · ×1
  • Duplicated block (5 lines × 61) crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1377 — crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1377-1381 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:678-682 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:859-863 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:363-367 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:556-560 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:716-720 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:850-854 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1001-1005 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1062-1066 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1173-1177 | crates/libs/windows/src/Windows/Data/Json/mod.rs:304-308 | crates/libs/windows/src/Windows/Data/Json/mod.rs:561-565 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4749-4753 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:4880-4884 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:165-169 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:431-435 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:731-735 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:11-15 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:124-128 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:232-236 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:330-334 | crates/libs/windows/src/Windows/Foundation/mod.rs:2287-2291 | crates/libs/windows/src/Windows/Globalization/Collation/mod.rs:58-62 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:843-847 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4481-4485 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2053-2057 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1789-1793 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3574-3578 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3678-3682 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:4662-4666 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:211-215 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3813-3817 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:989-993 | crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs:72-76 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:11-15 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:240-244 | crates/libs/windows/src/Windows/Storage/Pickers/mod.rs:323-327 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1546-1550 | crates/libs/windows/src/Windows/Storage/mod.rs:289-293 | crates/libs/windows/src/Windows/Storage/mod.rs:458-462 | crates/libs/windows/src/Windows/System/UserProfile/mod.rs:193-197 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:950-954 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:58-62 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:265-269 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:454-458 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:643-647 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:844-848 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1191-1195 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1454-1458 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1794-1798 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1929-1933 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2137-2141 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2436-2440 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2567-2571 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2911-2915 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3195-3199 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3374-3378 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3537-3541 | crates/libs/windows/src/Windows/Web/Http/mod.rs:488-492 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1047-1051 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1185-1189 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/Data/Json/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 58) · ×1
  • Duplicated block (5 lines × 58) crates/libs/windows/src/Windows/Data/Json/mod.rs:402 — crates/libs/windows/src/Windows/Data/Json/mod.rs:402-406 | crates/libs/windows/src/Windows/Data/Json/mod.rs:768-772 | crates/libs/windows/src/Windows/Data/Json/mod.rs:890-894 | crates/libs/windows/src/Windows/Foundation/mod.rs:2110-2114 | crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs:250-254 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:34-38 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:181-185 | crates/libs/windows/src/Windows/Networking/mod.rs:167-171 | crates/libs/windows/src/Windows/System/Inventory/mod.rs:64-68 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:65-69 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:222-226 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:272-276 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:411-415 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:461-465 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:600-604 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:650-654 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:801-805 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:851-855 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1036-1040 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1241-1245 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1338-1342 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1411-1415 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1461-1465 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1618-1622 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1676-1680 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1751-1755 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1801-1805 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1936-1940 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2094-2098 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2144-2148 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2301-2305 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2393-2397 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2443-2447 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2574-2578 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2728-2732 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2798-2802 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2868-2872 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2918-2922 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3245-3249 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3424-3428 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3494-3498 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3544-3548 | crates/libs/windows/src/Windows/Web/Http/mod.rs:88-92 | crates/libs/windows/src/Windows/Web/Http/mod.rs:353-357 | crates/libs/windows/src/Windows/Web/Http/mod.rs:458-462 | crates/libs/windows/src/Windows/Web/Http/mod.rs:668-672 | crates/libs/windows/src/Windows/Web/Http/mod.rs:733-737 | crates/libs/windows/src/Windows/Web/Http/mod.rs:794-798 | crates/libs/windows/src/Windows/Web/Http/mod.rs:854-858 | crates/libs/windows/src/Windows/Web/Http/mod.rs:934-938 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1054-1058 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1192-1196 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1362-1366 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1420-1424 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1542-1546 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1720-1724 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1823-1827 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1881-1885 — before extracting anything, compare `crates/libs/windows/src/Windows/Data/Json/mod.rs` and `crates/libs/windows/src/Windows/Foundation/mod.rs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 45) · ×1
  • Duplicated block (5 lines × 45) crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1289 — crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1289-1293 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1363-1367 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1437-1441 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1511-1515 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1596-1600 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1785-1789 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1855-1859 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1922-1926 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1986-1990 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2056-2060 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2134-2138 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2207-2211 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2285-2289 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2363-2367 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2422-2426 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2500-2504 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2578-2582 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2657-2661 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2724-2728 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2811-2815 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2899-2903 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2973-2977 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3048-3052 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3129-3133 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3204-3208 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3279-3283 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3372-3376 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3445-3449 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3522-3526 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3637-3641 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3707-3711 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3766-3770 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3822-3826 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3874-3878 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3962-3966 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4058-4062 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4124-4128 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4203-4207 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4270-4274 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4340-4344 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4413-4417 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:4969-4973 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5036-5040 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5107-5111 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:5174-5178 — all 45 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 31) · ×1
  • Duplicated block (5 lines × 31) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:112 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:112-116 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:174-178 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:236-240 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:298-302 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:371-375 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:715-719 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:781-785 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:842-846 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1017-1021 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1083-1087 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2090-2094 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2176-2180 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2262-2266 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2359-2363 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:2476-2480 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3037-3041 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3162-3166 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3279-3283 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3571-3575 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:3701-3705 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:4404-4408 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1304-1308 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1378-1382 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1452-1456 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1526-1530 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1611-1615 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2063-2067 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2141-2145 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2214-2218 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2429-2433 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:2507-2511 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/UI/WebUI/mod.rs` as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 30) · ×1
  • Duplicated block (5 lines × 30) crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:384 — crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:384-388 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:241-245 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:706-710 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:911-915 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1136-1140 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1440-1444 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1961-1965 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4740-4744 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:4993-4997 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5298-5302 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5595-5599 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1089-1093 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2528-2532 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2656-2660 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4476-4480 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4794-4798 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7499-7503 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7561-7565 | crates/libs/windows/src/Windows/Media/Core/mod.rs:832-836 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:116-120 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:280-284 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:1358-1362 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2364-2368 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1182-1186 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:361-365 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:937-941 | crates/libs/windows/src/Windows/Storage/mod.rs:3185-3189 | crates/libs/windows/src/Windows/Storage/mod.rs:3333-3337 | crates/libs/windows/src/Windows/Storage/mod.rs:4599-4603 | crates/libs/windows/src/Windows/Storage/mod.rs:5030-5034 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs` and `crates/libs/windows/src/Windows/Media/Audio/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 29) · ×1
  • Duplicated block (5 lines × 29) crates/libs/windows/src/Windows/AI/Actions/mod.rs:25 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:25-29 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:645-649 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:726-730 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:789-793 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:881-885 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:943-947 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:993-997 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1043-1047 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1713-1717 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1763-1767 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1918-1922 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2062-2066 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2124-2128 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:2181-2185 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:111-115 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:40-44 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2409-2413 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1200-1204 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:16-20 | crates/libs/windows/src/Windows/Media/Core/mod.rs:351-355 | crates/libs/windows/src/Windows/Media/Core/mod.rs:865-869 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3609-3613 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5902-5906 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6060-6064 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6399-6403 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4134-4138 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:590-594 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1175-1179 | crates/libs/windows/src/Windows/UI/Shell/Tasks/mod.rs:144-148 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 27) · ×1
  • Duplicated block (5 lines × 27) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:706 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:706-710 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs:1090-1094 | crates/libs/windows/src/Windows/Data/Json/mod.rs:423-427 | crates/libs/windows/src/Windows/Data/Json/mod.rs:743-747 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:39-43 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:152-156 | crates/libs/windows/src/Windows/Foundation/Collections/mod.rs:358-362 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1017-1021 | crates/libs/windows/src/Windows/Storage/mod.rs:317-321 | crates/libs/windows/src/Windows/Storage/mod.rs:486-490 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:971-975 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:86-90 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:293-297 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:482-486 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:671-675 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:872-876 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1219-1223 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1482-1486 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1822-1826 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1957-1961 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2165-2169 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2464-2468 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2595-2599 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2939-2943 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3223-3227 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3402-3406 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:3565-3569 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Security/Credentials/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 19) · ×1
  • Duplicated block (5 lines × 19) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:960 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:960-964 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs:123-127 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:428-432 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:301-305 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1872-1876 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1922-1926 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1501-1505 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1583-1587 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1691-1695 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2668-2672 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2727-2731 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2798-2802 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2866-2870 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:339-343 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:915-919 | crates/libs/windows/src/Windows/Storage/mod.rs:3163-3167 | crates/libs/windows/src/Windows/Storage/mod.rs:3311-3315 | crates/libs/windows/src/Windows/Storage/mod.rs:4577-4581 | crates/libs/windows/src/Windows/Storage/mod.rs:5008-5012 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 27 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2–25 lines × 68) · ×1
  • Duplicated block (2–25 lines × 68) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2443 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2443-2444 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2846-2847 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2864-2865 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:657-681 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:192-193 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:361-362 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:379-380 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:498-499 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:743-744 | crates/libs/windows/src/Windows/Foundation/mod.rs:408-409 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1041-1042 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1059-1060 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1077-1078 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2927-2928 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:1567-1568 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1197-1198 | crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs:1215-1216 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:606-607 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1345-1346 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1156-1157 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1174-1175 | crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs:53-77 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2289-2313 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2524-2525 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2814-2815 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2832-2833 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2850-2851 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2868-2869 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2886-2887 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2904-2905 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2922-2923 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3255-3256 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3273-3274 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3291-3292 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3925-3926 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3943-3944 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3961-3962 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3979-3980 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3997-3998 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4015-4016 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4033-4034 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4051-4052 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4069-4070 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4087-4088 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4105-4106 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4123-4124 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4141-4142 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4159-4160 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4177-4178 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4195-4196 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4213-4214 | crates/libs/windows/src/Windows/Web/UI/mod.rs:664-665 | crates/libs/windows/src/Windows/Web/UI/mod.rs:682-683 | crates/libs/windows/src/Windows/Web/UI/mod.rs:700-701 | crates/libs/windows/src/Windows/Web/UI/mod.rs:718-719 | crates/libs/windows/src/Windows/Web/UI/mod.rs:736-737 | crates/libs/windows/src/Windows/Web/UI/mod.rs:754-755 | crates/libs/windows/src/Windows/Web/UI/mod.rs:772-773 | crates/libs/windows/src/Windows/Web/UI/mod.rs:790-791 | crates/libs/windows/src/Windows/Web/UI/mod.rs:808-809 | crates/libs/windows/src/Windows/Web/UI/mod.rs:826-827 | crates/libs/windows/src/Windows/Web/UI/mod.rs:844-845 | crates/libs/windows/src/Windows/Web/UI/mod.rs:862-863 | crates/libs/windows/src/Windows/Web/UI/mod.rs:880-881 | crates/libs/windows/src/Windows/Web/UI/mod.rs:898-899 | crates/libs/windows/src/Windows/Web/UI/mod.rs:916-917 | crates/libs/windows/src/Windows/Web/UI/mod.rs:934-935 | crates/libs/windows/src/Windows/Web/UI/mod.rs:952-953 — `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2–25 lines × 82) · ×1
  • Duplicated block (2–25 lines × 82) crates/libs/windows/src/Windows/AI/Agents/Mcp/mod.rs:168 — crates/libs/windows/src/Windows/AI/Agents/Mcp/mod.rs:168-169 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:244-245 | crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:5508-5509 | crates/libs/windows/src/Windows/Data/Json/mod.rs:199-200 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:1516-1517 | crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs:176-200 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4177-4178 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4189-4190 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4219-4220 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4231-4232 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4243-4244 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4255-4256 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4267-4268 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4279-4280 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4460-4461 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4472-4473 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4508-4509 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4520-4521 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4532-4533 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4544-4545 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4556-4557 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4568-4569 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4580-4581 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4592-4593 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4826-4827 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4838-4839 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4850-4851 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4862-4863 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4874-4875 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:4886-4887 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:695-696 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1250-1251 | crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs:540-541 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1108-1109 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:888-889 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:906-907 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1395-1419 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1567-1568 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:3536-3537 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2104-2105 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:612-613 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:772-773 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:796-797 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:982-983 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:311-312 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:945-946 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1974-1975 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1986-1987 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2658-2659 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:112-113 | crates/libs/windows/src/Windows/Media/mod.rs:571-572 | crates/libs/windows/src/Windows/Media/mod.rs:646-647 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:1863-1887 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:670-671 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:682-683 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:470-471 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:488-489 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:611-612 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:629-630 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1514-1515 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1532-1533 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1120-1121 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2331-2332 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2343-2344 | crates/libs/windows/src/Windows/Storage/mod.rs:1987-1988 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2506-2507 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2771-2772 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3816-3817 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3865-3866 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4483-4507 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:528-529 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1047-1048 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1508-1509 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1520-1521 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1532-1533 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1544-1545 | crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs:244-245 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:589-613 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:228-229 | crates/libs/windows/src/Windows/Web/UI/mod.rs:478-479 | crates/libs/windows/src/Windows/Web/UI/mod.rs:490-491 | crates/libs/windows/src/Windows/Web/UI/mod.rs:520-521 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (26 lines × 3) · ×1
  • Duplicated block (26 lines × 3) crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1285 — crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1285-1310 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:331-356 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:2344-2369 — before extracting anything, compare `crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs` and `crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (15 lines × 7) · ×1
  • Duplicated block (15 lines × 7) crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6108 — crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs:6108-6122 | crates/libs/windows/src/Windows/Win32/certexit/mod.rs:138-152 | crates/libs/windows/src/Windows/Win32/certpol/mod.rs:140-154 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:2026-2040 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:16132-16146 | crates/libs/windows/src/Windows/Win32/dcomp/mod.rs:2523-2537 | crates/libs/windows/src/Windows/Win32/dwrite/mod.rs:6487-6501 — `crates/libs/windows/src/Windows/Win32/appxpackaging/mod.rs` and `crates/libs/windows/src/Windows/Win32/d2d/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 84 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×1
  • Duplicated block (26 lines × 2) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7833 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7833-7858 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11453-11478 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (24 lines × 3) · ×1
  • Duplicated block (24 lines × 3) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8354 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8354-8377 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11860-11883 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:17139-17162 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2–19 lines × 5) · ×1
  • Duplicated block (2–19 lines × 5) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7598 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7598-7599 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:8725-8743 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:10802-10803 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12439-12457 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3949-3950 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×1
  • Duplicated block (31 lines × 2) crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12119 — crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:12119-12149 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:17398-17428 — `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 26 separate duplicated blocks between them, totalling at least 284 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2–25 lines × 275) · ×1
  • Duplicated block (2–25 lines × 275) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1957 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:1957-1958 | crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs:78-79 | crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs:90-91 | crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs:102-103 | crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs:114-115 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:65-66 | crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs:228-229 | crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs:72-73 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:604-605 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:616-617 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:640-641 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:652-653 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:670-671 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:682-683 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:706-707 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:718-719 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:852-853 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:870-871 | crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs:1472-1473 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2951-2952 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:1156-1157 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1079-1080 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1556-1557 | crates/libs/windows/src/Windows/UI/Text/mod.rs:1568-1569 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2208-2209 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2226-2227 | crates/libs/windows/src/Windows/UI/Text/mod.rs:2442-2443 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:102-103 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:114-115 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:126-127 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:144-145 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:398-399 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:416-417 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:434-435 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:598-599 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:616-617 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:646-647 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:688-689 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:833-834 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:920-921 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:932-933 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:944-945 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:956-957 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:968-969 | crates/libs/windows/src/Windows/Win32/amvideo/mod.rs:980-981 | crates/libs/windows/src/Windows/Win32/audiopolicy/mod.rs:353-354 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3061-3062 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3073-3074 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3109-3110 | crates/libs/windows/src/Windows/Win32/bdaiface/mod.rs:3818-3819 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:139-140 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1317-1318 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1626-1627 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:219-220 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:474-475 | crates/libs/windows/src/Windows/Win32/certcli/mod.rs:486-487 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:89-90 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:345-346 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:589-590 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:842-843 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1054-1055 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1274-1275 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1286-1287 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:433-434 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:773-774 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1451-1452 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2340-2341 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2584-2585 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2927-2928 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3127-3128 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3139-3140 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3175-3176 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3187-3188 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3354-3355 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3720-3721 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3756-3757 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3989-3990 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4205-4206 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4403-4404 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4769-4770 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5046-5047 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5263-5264 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5429-5430 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5597-5598 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5737-5738 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6057-6058 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6758-6759 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7108-7109 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:7945-7946 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:8047-8048 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:9128-9129 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10015-10016 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10278-10279 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10811-10812 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11024-11025 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11407-11408 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11521-11522 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13014-13015 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13625-13626 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13637-13638 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13844-13845 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14146-14147 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14289-14290 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15329-15330 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15527-15528 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:15977-15978 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:176-177 | crates/libs/windows/src/Windows/Win32/certif/mod.rs:455-456 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:328-329 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:508-509 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:544-545 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:556-557 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:568-569 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:716-717 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:740-741 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:889-890 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:961-962 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:464-465 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:476-477 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1444-1445 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1480-1481 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1552-1553 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1564-1565 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:391-392 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3813-3814 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4607-4608 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5000-5001 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5141-5142 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:5719-5720 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6514-6515 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6532-6533 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6667-6668 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6819-6820 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6893-6894 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7861-7862 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7999-8000 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8102-8103 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9648-9649 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9660-9661 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9678-9679 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9696-9697 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9708-9709 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10725-10726 | crates/libs/windows/src/Windows/Win32/control/mod.rs:54-55 | crates/libs/windows/src/Windows/Win32/control/mod.rs:171-172 | crates/libs/windows/src/Windows/Win32/control/mod.rs:287-288 | crates/libs/windows/src/Windows/Win32/control/mod.rs:305-306 | crates/libs/windows/src/Windows/Win32/control/mod.rs:572-573 | crates/libs/windows/src/Windows/Win32/control/mod.rs:584-585 | crates/libs/windows/src/Windows/Win32/control/mod.rs:596-597 | crates/libs/windows/src/Windows/Win32/control/mod.rs:608-609 | crates/libs/windows/src/Windows/Win32/control/mod.rs:626-627 | crates/libs/windows/src/Windows/Win32/control/mod.rs:644-645 | crates/libs/windows/src/Windows/Win32/control/mod.rs:662-663 | crates/libs/windows/src/Windows/Win32/control/mod.rs:680-681 | crates/libs/windows/src/Windows/Win32/control/mod.rs:698-699 | crates/libs/windows/src/Windows/Win32/control/mod.rs:716-717 | crates/libs/windows/src/Windows/Win32/control/mod.rs:734-735 | crates/libs/windows/src/Windows/Win32/control/mod.rs:752-753 | crates/libs/windows/src/Windows/Win32/control/mod.rs:968-969 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1159-1160 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1569-1570 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1808-1809 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1820-1821 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2112-2113 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2625-2626 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2643-2644 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2661-2662 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2679-2680 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2697-2698 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2715-2716 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2733-2734 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2751-2752 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2769-2770 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2787-2788 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2835-2836 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2853-2854 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2919-2920 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:5035-5036 | crates/libs/windows/src/Windows/Win32/dsound/mod.rs:2704-2705 | crates/libs/windows/src/Windows/Win32/dxgi/mod.rs:1574-1575 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:290-291 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:302-303 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:314-315 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:829-830 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:883-884 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:973-974 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3138-3139 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3587-3588 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3605-3606 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3623-3624 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3641-3642 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:4486-4487 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:182-183 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:452-453 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:816-840 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1179-1180 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:324-325 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1201-1202 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1782-1783 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2657-2658 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2687-2688 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:3027-3028 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1281-1282 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1299-1300 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1317-1318 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1335-1336 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1515-1516 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1533-1534 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1714-1715 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1935-1936 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:2612-2613 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3563-3564 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4109-4110 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4127-4128 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4145-4146 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4163-4164 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4181-4182 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4199-4200 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4217-4218 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4235-4236 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4332-4333 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4644-4645 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4836-4837 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4902-4903 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5148-5149 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5232-5233 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5250-5251 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5521-5522 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5852-5853 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6688-6689 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6881-6882 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6941-6942 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7277-7278 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7289-7290 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7319-7320 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7510-7511 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7522-7523 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7534-7535 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7546-7547 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7964-7965 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7982-7983 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8147-8148 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8347-8348 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8365-8366 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8549-8550 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8567-8568 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8725-8726 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9037-9038 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9145-9146 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9163-9164 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9482-9483 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9500-9501 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9518-9519 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9668-9669 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9896-9897 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:9914-9915 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10221-10222 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10498-10499 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10516-10517 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10570-10571 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10753-10754 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10933-10934 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10945-10946 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11010-11034 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11094-11095 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11112-11113 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11227-11228 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11245-11246 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:12084-12085 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:12558-12559 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:12576-12577 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:12648-12649 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:12666-12667 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:12702-12703 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (77 lines × 132) · ×1
  • Duplicated block (77 lines × 132) crates/libs/metadata/src/bindings.rs:18 — crates/libs/metadata/src/bindings.rs:18-186 | crates/libs/sys/src/Windows/Win32/appmodel/mod.rs:167-243 | crates/libs/sys/src/Windows/Win32/bcrypt/mod.rs:205-931 | crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs:76-355 | crates/libs/sys/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | REDACTED:98-367 | crates/libs/sys/src/Windows/Win32/d2d/mod.rs:294-888 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/directml/mod.rs:550-1464 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/dxva2api/mod.rs:118-426 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntcons/mod.rs:44-204 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/fwptypes/mod.rs:32-292 | crates/libs/sys/src/Windows/Win32/hidpi/mod.rs:81-334 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/httpext/mod.rs:36-273 | crates/libs/sys/src/Windows/Win32/icm/mod.rs:413-612 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/imm/mod.rs:139-538 | crates/libs/sys/src/Windows/Win32/ipexport/mod.rs:50-187 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/iprtrmib/mod.rs:61-147 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mfapi/mod.rs:249-915 | crates/libs/sys/src/Windows/Win32/mfidl/mod.rs:205-487 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/minwinbase/mod.rs:42-473 | crates/libs/sys/src/Windows/Win32/mlang/mod.rs:49-142 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mmreg/mod.rs:37-2337 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/mswsock/mod.rs:71-334 | crates/libs/sys/src/Windows/Win32/nb30/mod.rs:42-252 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | crates/libs/sys/src/Windows/Win32/ntddvol/mod.rs:66-181 | REDACTED:403-710 | crates/libs/sys/src/Windows/Win32/ntenclv/mod.rs:20-197 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/objidl/mod.rs:108-296 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/pdh/mod.rs:281-659 | crates/libs/sys/src/Windows/Win32/poclass/mod.rs:17-389 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rasdlg/mod.rs:93-191 | crates/libs/sys/src/Windows/Win32/richedit/mod.rs:142-971 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/sapi/mod.rs:852-1324 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj/mod.rs:30-214 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/shobjidl_core/mod.rs:212-1555 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/tdh/mod.rs:72-430 | crates/libs/sys/src/Windows/Win32/traffic/mod.rs:63-223 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/vfw/mod.rs:240-1160 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/wiadef/mod.rs:154-1185 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | REDACTED:487-1121 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | REDACTED:566-1379 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winsafer/mod.rs:53-165 | crates/libs/sys/src/Windows/Win32/winsock2/mod.rs:216-820 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/wintrust/mod.rs:134-771 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/sys/src/Windows/Win32/wtypesbase/mod.rs:32-197 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/windows/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/windows/src/Windows/Win32/fwptypes/mod.rs:32-292 — before extracting anything, compare `crates/libs/metadata/src/bindings.rs` and `crates/libs/sys/src/Windows/Win32/appmodel/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (25 lines × 161) · ×1
  • Duplicated block (25 lines × 161) crates/libs/metadata/src/bindings.rs:18 — crates/libs/metadata/src/bindings.rs:18-186 | crates/libs/sys/src/Windows/Win32/adtgen/mod.rs:32-137 | crates/libs/sys/src/Windows/Win32/amvideo/mod.rs:47-97 | crates/libs/sys/src/Windows/Win32/appmodel/mod.rs:167-243 | crates/libs/sys/src/Windows/Win32/authz/mod.rs:164-273 | crates/libs/sys/src/Windows/Win32/bcrypt/mod.rs:205-931 | crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs:76-355 | crates/libs/sys/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | REDACTED:98-367 | crates/libs/sys/src/Windows/Win32/cryptxml/mod.rs:201-385 | crates/libs/sys/src/Windows/Win32/d2d/mod.rs:294-888 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dcommon/mod.rs:31-153 | crates/libs/sys/src/Windows/Win32/dde/mod.rs:32-64 | crates/libs/sys/src/Windows/Win32/ddeml/mod.rs:107-279 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/directml/mod.rs:550-1464 | crates/libs/sys/src/Windows/Win32/dxcore_interface/mod.rs:31-196 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/dxva2api/mod.rs:118-426 | REDACTED:110-269 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntcons/mod.rs:44-204 | crates/libs/sys/src/Windows/Win32/evntprov/mod.rs:30-120 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/fwptypes/mod.rs:32-292 | crates/libs/sys/src/Windows/Win32/hidpi/mod.rs:81-334 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/httpext/mod.rs:36-273 | crates/libs/sys/src/Windows/Win32/iads/mod.rs:57-445 | crates/libs/sys/src/Windows/Win32/icm/mod.rs:413-612 | crates/libs/sys/src/Windows/Win32/icu/mod.rs:1819-2952 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/imm/mod.rs:139-538 | crates/libs/sys/src/Windows/Win32/ipexport/mod.rs:50-187 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/iprtrmib/mod.rs:61-147 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/joystickapi/mod.rs:52-156 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mfapi/mod.rs:249-915 | crates/libs/sys/src/Windows/Win32/mfidl/mod.rs:205-487 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/minwinbase/mod.rs:42-473 | crates/libs/sys/src/Windows/Win32/mlang/mod.rs:49-142 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mmreg/mod.rs:37-2337 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/msctf/mod.rs:61-250 | crates/libs/sys/src/Windows/Win32/mswsock/mod.rs:71-334 | crates/libs/sys/src/Windows/Win32/nb30/mod.rs:42-252 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | crates/libs/sys/src/Windows/Win32/ntddser/mod.rs:85-202 | crates/libs/sys/src/Windows/Win32/ntddvol/mod.rs:66-181 | REDACTED:403-710 | crates/libs/sys/src/Windows/Win32/ntenclv/mod.rs:20-197 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/objidl/mod.rs:108-296 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/pdh/mod.rs:281-659 | crates/libs/sys/src/Windows/Win32/poclass/mod.rs:17-389 | crates/libs/sys/src/Windows/Win32/powrprof/mod.rs:216-340 | crates/libs/sys/src/Windows/Win32/propidlbase/mod.rs:174-230 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rasdlg/mod.rs:93-191 | crates/libs/sys/src/Windows/Win32/richedit/mod.rs:142-971 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/sapi/mod.rs:852-1324 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj/mod.rs:30-214 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/shobjidl_core/mod.rs:212-1555 | crates/libs/sys/src/Windows/Win32/shtypes/mod.rs:102-126 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/sti/mod.rs:40-188 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/tdh/mod.rs:72-430 | crates/libs/sys/src/Windows/Win32/tlhelp32/mod.rs:88-158 | crates/libs/sys/src/Windows/Win32/traffic/mod.rs:63-223 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/vfw/mod.rs:240-1160 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/wiadef/mod.rs:154-1185 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | crates/libs/sys/src/Windows/Win32/wincontypes/mod.rs:10-89 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | REDACTED:487-1121 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | REDACTED:566-1379 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | REDACTED:498-626 | crates/libs/sys/src/Windows/Win32/winnls/mod.rs:311-533 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winperf/mod.rs:93-185 | crates/libs/sys/src/Windows/Win32/winsafer/mod.rs:53-165 | crates/libs/sys/src/Windows/Win32/winscard/mod.rs:327-422 | crates/libs/sys/src/Windows/Win32/winsock2/mod.rs:216-820 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winsvc/mod.rs:349-657 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/wintrust/mod.rs:134-771 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/wmsdkidl/mod.rs:54-401 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/sys/src/Windows/Win32/wtypesbase/mod.rs:32-197 | crates/libs/windows/src/Windows/Win32/adtgen/mod.rs:32-137 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/bthledef/mod.rs:28-326 | REDACTED:110-269 | crates/libs/windows/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/windows/src/Windows/Win32/fwptypes/mod.rs:32-292 — before extracting anything, compare `crates/libs/metadata/src/bindings.rs` and `crates/libs/sys/src/Windows/Win32/appmodel/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (635 lines × 36) · ×1
  • Duplicated block (635 lines × 36) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 25 separate duplicated blocks between them, totalling at least 325325 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (268 lines × 87) · ×1
  • Duplicated block (268 lines × 87) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs:76-355 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:403-710 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/pdh/mod.rs:281-659 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | REDACTED:566-1379 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 91091 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (254 lines × 96) · ×1
  • Duplicated block (254 lines × 96) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs:76-355 | crates/libs/sys/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/dxva2api/mod.rs:118-426 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/hidpi/mod.rs:81-334 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/mswsock/mod.rs:71-334 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:403-710 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/pdh/mod.rs:281-659 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/shobjidl_core/mod.rs:212-1555 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/tdh/mod.rs:72-430 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/vfw/mod.rs:240-1160 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | REDACTED:566-1379 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winsock2/mod.rs:216-820 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 91091 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (483 lines × 51) · ×1
  • Duplicated block (483 lines × 51) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (635 lines × 43) · ×1
  • Duplicated block (635 lines × 43) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 21 separate duplicated blocks between them, totalling at least 273273 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2034 lines × 13) · ×1
  • Duplicated block (2034 lines × 13) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (306 lines × 66) · ×1
  • Duplicated block (306 lines × 66) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (296 lines × 82) · ×1
  • Duplicated block (296 lines × 82) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:403-710 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (87 lines × 117) · ×1
  • Duplicated block (87 lines × 117) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs:76-355 | crates/libs/sys/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | REDACTED:98-367 | crates/libs/sys/src/Windows/Win32/d2d/mod.rs:294-888 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/dxva2api/mod.rs:118-426 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/fwptypes/mod.rs:32-292 | crates/libs/sys/src/Windows/Win32/hidpi/mod.rs:81-334 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/iprtrmib/mod.rs:61-147 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mfapi/mod.rs:249-915 | crates/libs/sys/src/Windows/Win32/mfidl/mod.rs:205-487 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/minwinbase/mod.rs:42-473 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/mswsock/mod.rs:71-334 | crates/libs/sys/src/Windows/Win32/nb30/mod.rs:42-252 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | crates/libs/sys/src/Windows/Win32/ntddvol/mod.rs:66-181 | REDACTED:403-710 | crates/libs/sys/src/Windows/Win32/ntenclv/mod.rs:20-197 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/objidl/mod.rs:108-296 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/pdh/mod.rs:281-659 | crates/libs/sys/src/Windows/Win32/poclass/mod.rs:17-389 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rasdlg/mod.rs:93-191 | crates/libs/sys/src/Windows/Win32/richedit/mod.rs:142-971 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/shobjidl_core/mod.rs:212-1555 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/tdh/mod.rs:72-430 | crates/libs/sys/src/Windows/Win32/traffic/mod.rs:63-223 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/vfw/mod.rs:240-1160 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/wiadef/mod.rs:154-1185 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | REDACTED:487-1121 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | REDACTED:566-1379 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winsock2/mod.rs:216-820 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/wintrust/mod.rs:134-771 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/windows/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/windows/src/Windows/Win32/fwptypes/mod.rs:32-292 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 91091 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (296 lines × 72) · ×1
  • Duplicated block (296 lines × 72) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 27) · ×1
  • Duplicated block (762 lines × 27) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 28 separate duplicated blocks between them, totalling at least 364364 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (3278 lines × 10) · ×1
  • Duplicated block (3278 lines × 10) crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161 — crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` and `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 45 separate duplicated blocks between them, totalling at least 585585 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 20) · ×1
  • Duplicated block (762 lines × 20) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6383 lines × 5) · ×1
  • Duplicated block (6383 lines × 5) crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442 — crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` and `crates/libs/sys/src/Windows/Win32/ntddk/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 50 separate duplicated blocks between them, totalling at least 650650 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2034 lines × 14) · ×1
  • Duplicated block (2034 lines × 14) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (296 lines × 77) · ×1
  • Duplicated block (296 lines × 77) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 24) · ×1
  • Duplicated block (762 lines × 24) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (71 lines × 145) · ×1
  • Duplicated block (71 lines × 145) crates/libs/metadata/src/bindings.rs:18 — crates/libs/metadata/src/bindings.rs:18-186 | crates/libs/sys/src/Windows/Win32/appmodel/mod.rs:167-243 | crates/libs/sys/src/Windows/Win32/bcrypt/mod.rs:205-931 | crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs:76-355 | crates/libs/sys/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | REDACTED:98-367 | crates/libs/sys/src/Windows/Win32/d2d/mod.rs:294-888 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dcommon/mod.rs:31-153 | crates/libs/sys/src/Windows/Win32/ddeml/mod.rs:107-279 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/directml/mod.rs:550-1464 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/dxva2api/mod.rs:118-426 | REDACTED:110-269 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntcons/mod.rs:44-204 | crates/libs/sys/src/Windows/Win32/evntprov/mod.rs:30-120 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/fwptypes/mod.rs:32-292 | crates/libs/sys/src/Windows/Win32/hidpi/mod.rs:81-334 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/httpext/mod.rs:36-273 | crates/libs/sys/src/Windows/Win32/icm/mod.rs:413-612 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/imm/mod.rs:139-538 | crates/libs/sys/src/Windows/Win32/ipexport/mod.rs:50-187 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/iprtrmib/mod.rs:61-147 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/joystickapi/mod.rs:52-156 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mfapi/mod.rs:249-915 | crates/libs/sys/src/Windows/Win32/mfidl/mod.rs:205-487 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/minwinbase/mod.rs:42-473 | crates/libs/sys/src/Windows/Win32/mlang/mod.rs:49-142 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mmreg/mod.rs:37-2337 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/mswsock/mod.rs:71-334 | crates/libs/sys/src/Windows/Win32/nb30/mod.rs:42-252 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | crates/libs/sys/src/Windows/Win32/ntddser/mod.rs:85-202 | crates/libs/sys/src/Windows/Win32/ntddvol/mod.rs:66-181 | REDACTED:403-710 | crates/libs/sys/src/Windows/Win32/ntenclv/mod.rs:20-197 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/objidl/mod.rs:108-296 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/pdh/mod.rs:281-659 | crates/libs/sys/src/Windows/Win32/poclass/mod.rs:17-389 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rasdlg/mod.rs:93-191 | crates/libs/sys/src/Windows/Win32/richedit/mod.rs:142-971 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/sapi/mod.rs:852-1324 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj/mod.rs:30-214 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/shobjidl_core/mod.rs:212-1555 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/sti/mod.rs:40-188 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/tdh/mod.rs:72-430 | crates/libs/sys/src/Windows/Win32/tlhelp32/mod.rs:88-158 | crates/libs/sys/src/Windows/Win32/traffic/mod.rs:63-223 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/vfw/mod.rs:240-1160 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/wiadef/mod.rs:154-1185 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | REDACTED:487-1121 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | REDACTED:566-1379 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | REDACTED:498-626 | crates/libs/sys/src/Windows/Win32/winnls/mod.rs:311-533 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winsafer/mod.rs:53-165 | crates/libs/sys/src/Windows/Win32/winscard/mod.rs:327-422 | crates/libs/sys/src/Windows/Win32/winsock2/mod.rs:216-820 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winsvc/mod.rs:349-657 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/wintrust/mod.rs:134-771 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/sys/src/Windows/Win32/wtypesbase/mod.rs:32-197 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/bthledef/mod.rs:28-326 | REDACTED:110-269 | crates/libs/windows/src/Windows/Win32/fltuserstructures/mod.rs:9-204 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/windows/src/Windows/Win32/fwptypes/mod.rs:32-292 — before extracting anything, compare `crates/libs/metadata/src/bindings.rs` and `crates/libs/sys/src/Windows/Win32/appmodel/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (635 lines × 40) · ×1
  • Duplicated block (635 lines × 40) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 25 separate duplicated blocks between them, totalling at least 325325 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (483 lines × 55) · ×1
  • Duplicated block (483 lines × 55) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 32) · ×1
  • Duplicated block (762 lines × 32) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 28 separate duplicated blocks between them, totalling at least 364364 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (391 lines × 60) · ×1
  • Duplicated block (391 lines × 60) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (483 lines × 52) · ×1
  • Duplicated block (483 lines × 52) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (547 lines × 47) · ×1
  • Duplicated block (547 lines × 47) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 21 separate duplicated blocks between them, totalling at least 273273 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (296 lines × 71) · ×1
  • Duplicated block (296 lines × 71) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5977 lines × 6) · ×1
  • Duplicated block (5977 lines × 6) crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442 — crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` and `crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 49 separate duplicated blocks between them, totalling at least 637637 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (116 lines × 103) · ×1
  • Duplicated block (116 lines × 103) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs:76-355 | crates/libs/sys/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/dxva2api/mod.rs:118-426 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/hidpi/mod.rs:81-334 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/minwinbase/mod.rs:42-473 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/mswsock/mod.rs:71-334 | crates/libs/sys/src/Windows/Win32/nb30/mod.rs:42-252 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | crates/libs/sys/src/Windows/Win32/ntddvol/mod.rs:66-181 | REDACTED:403-710 | crates/libs/sys/src/Windows/Win32/ntenclv/mod.rs:20-197 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/objidl/mod.rs:108-296 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/pdh/mod.rs:281-659 | crates/libs/sys/src/Windows/Win32/poclass/mod.rs:17-389 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/shobjidl_core/mod.rs:212-1555 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/tdh/mod.rs:72-430 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/vfw/mod.rs:240-1160 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | REDACTED:566-1379 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winsock2/mod.rs:216-820 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/wintrust/mod.rs:134-771 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/bthledef/mod.rs:28-326 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/bluetoothapis/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 91091 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 23) · ×1
  • Duplicated block (762 lines × 23) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 26) · ×1
  • Duplicated block (762 lines × 26) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (547 lines × 46) · ×1
  • Duplicated block (547 lines × 46) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 21 separate duplicated blocks between them, totalling at least 273273 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 17) · ×1
  • Duplicated block (762 lines × 17) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 22) · ×1
  • Duplicated block (762 lines × 22) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 25) · ×1
  • Duplicated block (762 lines × 25) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (3278 lines × 9) · ×1
  • Duplicated block (3278 lines × 9) crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442 — crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` and `crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 49 separate duplicated blocks between them, totalling at least 637637 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 18) · ×1
  • Duplicated block (762 lines × 18) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (268 lines × 84) · ×1
  • Duplicated block (268 lines × 84) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/commctrl/mod.rs:910-4335 | crates/libs/sys/src/Windows/Win32/compstui/mod.rs:41-920 | crates/libs/sys/src/Windows/Win32/d3d10/mod.rs:122-1895 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3d9/mod.rs:39-2145 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbgeng/mod.rs:462-1309 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ddraw/mod.rs:71-1232 | REDACTED:385-1314 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/dxgi/mod.rs:31-678 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/evntrace/mod.rs:96-1407 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/http/mod.rs:139-1214 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipmib/mod.rs:59-516 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/iptypes/mod.rs:18-554 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/msacm/mod.rs:112-502 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:403-710 | REDACTED:468-4733 | REDACTED:293-2610 | REDACTED:292-1139 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/oaidl/mod.rs:11-686 | crates/libs/sys/src/Windows/Win32/oledb/mod.rs:193-2096 | crates/libs/sys/src/Windows/Win32/prsht/mod.rs:117-839 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | REDACTED:97-688 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shellapi/mod.rs:365-1161 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/sspi/mod.rs:654-1190 | crates/libs/sys/src/Windows/Win32/strmif/mod.rs:33-1169 | crates/libs/sys/src/Windows/Win32/tcpmib/mod.rs:15-320 | crates/libs/sys/src/Windows/Win32/udpmib/mod.rs:11-306 | crates/libs/sys/src/Windows/Win32/usb/mod.rs:24-642 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/usbspec/mod.rs:229-1055 | crates/libs/sys/src/Windows/Win32/vds/mod.rs:12-1807 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdbgexts/mod.rs:71-1067 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/werapi/mod.rs:117-507 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winspool/mod.rs:333-2058 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/wmistr/mod.rs:57-324 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (5977 lines × 7) · ×1
  • Duplicated block (5977 lines × 7) crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442 — crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` and `crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 49 separate duplicated blocks between them, totalling at least 637637 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 21) · ×1
  • Duplicated block (762 lines × 21) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (635 lines × 41) · ×1
  • Duplicated block (635 lines × 41) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 25 separate duplicated blocks between them, totalling at least 325325 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2034 lines × 12) · ×1
  • Duplicated block (2034 lines × 12) crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161 — crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` and `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 45 separate duplicated blocks between them, totalling at least 585585 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (635 lines × 38) · ×1
  • Duplicated block (635 lines × 38) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 25 separate duplicated blocks between them, totalling at least 325325 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9111 lines × 4) · ×1
  • Duplicated block (9111 lines × 4) crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175 — crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/ntddk/mod.rs` and `crates/libs/sys/src/Windows/Win32/wdm/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 51 separate duplicated blocks between them, totalling at least 663663 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2034 lines × 16) · ×1
  • Duplicated block (2034 lines × 16) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 19) · ×1
  • Duplicated block (762 lines × 19) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (3278 lines × 8) · ×1
  • Duplicated block (3278 lines × 8) crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442 — crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` and `crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 49 separate duplicated blocks between them, totalling at least 637637 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (3278 lines × 11) · ×1
  • Duplicated block (3278 lines × 11) crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161 — crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` and `crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 45 separate duplicated blocks between them, totalling at least 585585 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2034 lines × 15) · ×1
  • Duplicated block (2034 lines × 15) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | REDACTED:468-4733 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d12/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 42 separate duplicated blocks between them, totalling at least 546546 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9111 lines × 2) · ×1
  • Duplicated block (9111 lines × 2) crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175 — crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 — `crates/libs/sys/src/Windows/Win32/ntddk/mod.rs` and `crates/libs/sys/src/Windows/Win32/winioctl/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 53 separate duplicated blocks between them, totalling at least 687754 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9111 lines × 3) · ×1
  • Duplicated block (9111 lines × 3) crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175 — crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 — `crates/libs/sys/src/Windows/Win32/ntddk/mod.rs` and `crates/libs/sys/src/Windows/Win32/winioctl/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 53 separate duplicated blocks between them, totalling at least 687754 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (762 lines × 28) · ×1
  • Duplicated block (762 lines × 28) REDACTED:1024 — REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 — `REDACTED` and `crates/libs/sys/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 28 separate duplicated blocks between them, totalling at least 364364 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (483 lines × 53) · ×1
  • Duplicated block (483 lines × 53) crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41 — crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/sys/src/Windows/Win32/cfapi/mod.rs:125-843 | crates/libs/sys/src/Windows/Win32/cfgmgr32/mod.rs:427-1261 | REDACTED:1024-3781 | crates/libs/sys/src/Windows/Win32/d3d11/mod.rs:51-4690 | crates/libs/sys/src/Windows/Win32/d3d12/mod.rs:161-8937 | crates/libs/sys/src/Windows/Win32/d3dkmdt/mod.rs:69-1768 | crates/libs/sys/src/Windows/Win32/d3dkmthk/mod.rs:442-6824 | crates/libs/sys/src/Windows/Win32/d3dukmdt/mod.rs:21-2188 | crates/libs/sys/src/Windows/Win32/dbghelp/mod.rs:490-1796 | crates/libs/sys/src/Windows/Win32/dinput/mod.rs:103-2238 | crates/libs/sys/src/Windows/Win32/esent/mod.rs:244-1589 | crates/libs/sys/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 | crates/libs/sys/src/Windows/Win32/iketypes/mod.rs:12-1009 | crates/libs/sys/src/Windows/Win32/ipsectypes/mod.rs:165-1149 | crates/libs/sys/src/Windows/Win32/ks/mod.rs:48-1109 | crates/libs/sys/src/Windows/Win32/ksmedia/mod.rs:22-5998 | crates/libs/sys/src/Windows/Win32/minidumpapiset/mod.rs:24-1588 | crates/libs/sys/src/Windows/Win32/mmeapi/mod.rs:219-1621 | crates/libs/sys/src/Windows/Win32/mprapi/mod.rs:223-1688 | crates/libs/sys/src/Windows/Win32/netioapi/mod.rs:296-842 | crates/libs/sys/src/Windows/Win32/ntddcdrm/mod.rs:40-600 | crates/libs/sys/src/Windows/Win32/ntddk/mod.rs:175-11721 | crates/libs/sys/src/Windows/Win32/ntddmmc/mod.rs:26-787 | crates/libs/sys/src/Windows/Win32/ntddndis/mod.rs:9-2650 | crates/libs/sys/src/Windows/Win32/ntddscsi/mod.rs:24-1252 | REDACTED:468-4733 | REDACTED:293-2610 | crates/libs/sys/src/Windows/Win32/nvme/mod.rs:7-6284 | REDACTED:388-1452 | crates/libs/sys/src/Windows/Win32/rpc/mod.rs:739-2427 | crates/libs/sys/src/Windows/Win32/setupapi/mod.rs:1031-3064 | crates/libs/sys/src/Windows/Win32/shlobj_core/mod.rs:279-1495 | crates/libs/sys/src/Windows/Win32/usbioctl/mod.rs:41-883 | crates/libs/sys/src/Windows/Win32/virtdisk/mod.rs:69-947 | crates/libs/sys/src/Windows/Win32/wdm/mod.rs:404-13416 | crates/libs/sys/src/Windows/Win32/winbase/mod.rs:978-2676 | crates/libs/sys/src/Windows/Win32/winbio/mod.rs:170-1606 | REDACTED:544-5760 | crates/libs/sys/src/Windows/Win32/windns/mod.rs:169-1997 | crates/libs/sys/src/Windows/Win32/windot11/mod.rs:76-3353 | crates/libs/sys/src/Windows/Win32/wingdi/mod.rs:752-5635 | crates/libs/sys/src/Windows/Win32/winhvplatformdefs/mod.rs:35-2809 | crates/libs/sys/src/Windows/Win32/winioctl/mod.rs:40-9150 | crates/libs/sys/src/Windows/Win32/winnt/mod.rs:189-12732 | crates/libs/sys/src/Windows/Win32/winternl/mod.rs:138-620 | crates/libs/sys/src/Windows/Win32/winuser/mod.rs:2689-5578 | crates/libs/sys/src/Windows/Win32/wlan/mod.rs:274-1227 | crates/libs/sys/src/Windows/Win32/ws2/mod.rs:251-1536 | crates/libs/sys/src/Windows/Win32/wtsapi32/mod.rs:136-905 | crates/libs/sys/src/Windows/Win32/wtypes/mod.rs:50-589 | crates/libs/windows/src/Windows/Win32/bdatypes/mod.rs:41-675 | crates/libs/windows/src/Windows/Win32/fwpmtypes/mod.rs:14-1561 — `crates/libs/sys/src/Windows/Win32/bdatypes/mod.rs` and `crates/libs/sys/src/Windows/Win32/cfapi/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 234234 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (2500 lines × 2) · ×1
  • Duplicated block (2500 lines × 2) crates/libs/windows/src/Windows/Win32/d3dkmdt/mod.rs:69 — crates/libs/windows/src/Windows/Win32/d3dkmdt/mod.rs:69-2568 | crates/libs/windows/src/Windows/Win32/d3dukmdt/mod.rs:21-3386 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (10 lines × 7) · ×1
  • Duplicated block (10 lines × 7) crates/libs/collections/src/bindings.rs:586 — crates/libs/collections/src/bindings.rs:586-595 | crates/libs/collections/src/bindings.rs:1109-1118 | crates/libs/collections/src/bindings.rs:1983-1992 | crates/libs/collections/src/bindings.rs:2617-2626 | crates/libs/composition/src/bindings.rs:2841-2850 | crates/libs/composition/src/bindings_lifted.rs:2654-2663 | crates/libs/reactor/src/native/winui/bindings.rs:4982-4991 — before extracting anything, compare `crates/libs/collections/src/bindings.rs` and `crates/libs/composition/src/bindings_lifted.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 86) · ×1
  • Duplicated block (6 lines × 86) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:72 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:72-77 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:6-11 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:898-903 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1941-1946 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:99-104 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:390-395 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1383-1388 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs:98-103 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:568-573 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:649-654 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1198-1203 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1898-1903 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs:104-109 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:221-226 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2666-2671 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:218-223 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:396-401 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:738-743 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:856-861 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:133-138 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:195-200 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:238-243 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:498-503 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:454-459 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:158-163 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:507-512 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:829-834 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:77-82 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:257-262 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:196-201 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:685-690 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:24-29 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:1548-1553 | crates/libs/windows/src/Windows/Devices/Haptics/mod.rs:416-421 | crates/libs/windows/src/Windows/Devices/Haptics/mod.rs:543-548 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:397-402 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2354-2359 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:2931-2936 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:262-267 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1655-1660 | crates/libs/windows/src/Windows/Management/mod.rs:201-206 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1072-1077 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1130-1135 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7453-7458 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:162-167 | crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs:202-207 | crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs:152-157 | crates/libs/windows/src/Windows/Media/Core/mod.rs:195-200 | crates/libs/windows/src/Windows/Media/Core/mod.rs:1705-1710 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2606-2611 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7579-7584 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:709-714 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:739-744 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:1920-1925 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:126-131 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1228-1233 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:500-505 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:494-499 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:601-606 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:2910-2915 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:906-911 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:377-382 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:460-465 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1256-1261 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:432-437 | crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs:708-713 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:343-348 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:397-402 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:718-723 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:122-127 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:3207-3212 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:312-317 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1280-1285 | crates/libs/windows/src/Windows/Storage/mod.rs:5498-5503 | crates/libs/windows/src/Windows/System/Inventory/mod.rs:32-37 | crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs:277-282 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:913-918 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1112-1117 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1613-1618 | crates/libs/windows/src/Windows/System/Update/mod.rs:106-111 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1844-1849 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:1910-1915 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2642-2647 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:26-31 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1671-1676 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2102-2107 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 56) · ×1
  • Duplicated block (6 lines × 56) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:78 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:78-83 | crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:265-270 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:424-429 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:175-180 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1244-1249 | crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:18-23 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:519-524 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1280-1285 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1347-1352 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1831-1836 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3127-3132 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3609-3614 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3821-3826 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:536-541 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:768-773 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:747-752 | crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs:86-91 | crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs:96-101 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:145-150 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:877-882 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:1028-1033 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:112-117 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:107-112 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:447-452 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:925-930 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1465-1470 | crates/libs/windows/src/Windows/Management/Update/mod.rs:914-919 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1484-1489 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2178-2183 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2816-2821 | crates/libs/windows/src/Windows/Management/Update/mod.rs:3158-3163 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1240-1245 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1410-1415 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:1070-1075 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:512-517 | crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs:193-198 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:815-820 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1782-1787 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2475-2480 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1716-1721 | crates/libs/windows/src/Windows/System/Update/mod.rs:100-105 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:442-447 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:1332-1337 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14920-14925 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1665-1670 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2750-2755 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:2816-2821 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4586-4591 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4768-4773 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4951-4956 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5294-5299 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5914-5919 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6156-6161 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7106-7111 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7641-7646 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11331-11336 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 109) · ×1
  • Duplicated block (6 lines × 109) crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:183 — crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs:183-188 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:1657-1662 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:169-174 | crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs:1232-1237 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:361-366 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:458-463 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:789-794 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:904-909 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2768-2773 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:80-85 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1402-1407 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1600-1605 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3600-3605 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4303-4308 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:273-278 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:756-761 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:3110-3115 | crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs:433-438 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:765-770 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:1101-1106 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2478-2483 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2600-2605 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:2290-2295 | crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs:3816-3821 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:260-265 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1056-1061 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:202-207 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:424-429 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:62-67 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:3072-3077 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:208-213 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:386-391 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:616-621 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1014-1019 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1443-1448 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1611-1616 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:2372-2377 | crates/libs/windows/src/Windows/Foundation/mod.rs:1575-1580 | crates/libs/windows/src/Windows/Foundation/mod.rs:2371-2376 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:37-42 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:133-138 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:210-215 | crates/libs/windows/src/Windows/Graphics/Effects/mod.rs:9-14 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:204-209 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:343-348 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:430-435 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:514-519 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:575-580 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:675-680 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1056-1061 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1316-1321 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:2268-2273 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:743-748 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:2517-2522 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:2925-2930 | crates/libs/windows/src/Windows/Management/Policies/mod.rs:82-87 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:435-440 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:913-918 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:1453-1458 | crates/libs/windows/src/Windows/Media/Core/mod.rs:2075-2080 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5984-5989 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6601-6606 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7018-7023 | crates/libs/windows/src/Windows/Media/Import/mod.rs:817-822 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1192-1197 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1404-1409 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1513-1518 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:1347-1352 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:716-721 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:477-482 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:663-668 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:523-528 | crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs:2527-2532 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2033-2038 | crates/libs/windows/src/Windows/Storage/mod.rs:395-400 | crates/libs/windows/src/Windows/Storage/mod.rs:2540-2545 | crates/libs/windows/src/Windows/System/mod.rs:401-406 | crates/libs/windows/src/Windows/System/mod.rs:802-807 | crates/libs/windows/src/Windows/System/mod.rs:850-855 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2494-2499 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:102-107 | crates/libs/windows/src/Windows/UI/Text/mod.rs:472-477 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:991-996 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1370-1375 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:1704-1709 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2687-2692 | crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs:2760-2765 | crates/libs/windows/src/Windows/Web/Http/mod.rs:395-400 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:1102-1107 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2725-2730 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1387-1392 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3060-3065 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3507-3512 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5780-5785 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13997-14002 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1318-1323 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1645-1650 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1030-1035 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1963-1968 | crates/libs/windows/src/Windows/Win32/control/mod.rs:2270-2275 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:4180-4185 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1255-1260 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1700-1705 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:1820-1825 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2397-2402 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2738-2743 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2858-2863 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:584-589 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8449-8454 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 44) · ×1
  • Duplicated block (6 lines × 44) crates/libs/windows/src/Windows/AI/Actions/mod.rs:53 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:53-58 | crates/libs/windows/src/Windows/AI/Actions/mod.rs:415-420 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:2749-2754 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:2863-2868 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1795-1800 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs:81-86 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:527-532 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:762-767 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2278-2283 | crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs:309-314 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1080-1085 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7621-7626 | crates/libs/windows/src/Windows/Management/Update/mod.rs:908-913 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1478-1483 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2172-2177 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2810-2815 | crates/libs/windows/src/Windows/Management/Update/mod.rs:3149-3154 | crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs:161-166 | crates/libs/windows/src/Windows/Media/Control/mod.rs:264-269 | crates/libs/windows/src/Windows/Media/Core/mod.rs:317-322 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:1046-1051 | crates/libs/windows/src/Windows/Media/mod.rs:1267-1272 | crates/libs/windows/src/Windows/Media/mod.rs:1901-1906 | crates/libs/windows/src/Windows/Media/mod.rs:2586-2591 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1776-1781 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2469-2474 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:75-80 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:493-498 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:621-626 | crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs:1211-1216 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:69-74 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:144-149 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:86-91 | crates/libs/windows/src/Windows/System/Update/mod.rs:94-99 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1848-1853 | crates/libs/windows/src/Windows/UI/Core/mod.rs:2003-2008 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:203-208 | crates/libs/windows/src/Windows/UI/Shell/Tasks/mod.rs:100-105 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:860-865 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:1075-1080 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:137-142 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:48-53 | crates/libs/windows/src/Windows/Web/Syndication/mod.rs:2376-2381 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:11421-11426 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 67) · ×1
  • Duplicated block (6 lines × 67) crates/libs/windows/src/Windows/AI/Actions/mod.rs:345 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:345-350 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2807-2812 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:600-605 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2356-2361 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2390-2395 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2420-2425 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2448-2453 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3013-3018 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:581-586 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1366-1371 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1828-1833 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1967-1972 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:545-550 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:873-878 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1208-1213 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:515-520 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:588-593 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:3341-3346 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1224-1229 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1774-1779 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1998-2003 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2056-2061 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2337-2342 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2403-2408 | crates/libs/windows/src/Windows/Management/Update/mod.rs:3258-3263 | crates/libs/windows/src/Windows/Management/mod.rs:195-200 | crates/libs/windows/src/Windows/Media/AppRecording/mod.rs:83-88 | crates/libs/windows/src/Windows/Media/AppRecording/mod.rs:139-144 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2021-2026 | crates/libs/windows/src/Windows/Media/Core/mod.rs:240-245 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4230-4235 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6217-6222 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7669-7674 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:445-450 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:1088-1093 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2764-2769 | crates/libs/windows/src/Windows/Media/mod.rs:1861-1866 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:413-418 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:797-802 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:952-957 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1224-1229 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1271-1276 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1426-1431 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1514-1519 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1579-1584 | crates/libs/windows/src/Windows/Services/Store/mod.rs:659-664 | crates/libs/windows/src/Windows/Services/Store/mod.rs:819-824 | crates/libs/windows/src/Windows/Services/Store/mod.rs:956-961 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1936-1941 | crates/libs/windows/src/Windows/Services/Store/mod.rs:1972-1977 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2002-2007 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2085-2090 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2318-2323 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2342-2347 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2425-2430 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2640-2645 | crates/libs/windows/src/Windows/System/Diagnostics/mod.rs:12-17 | crates/libs/windows/src/Windows/System/Update/mod.rs:130-135 | crates/libs/windows/src/Windows/System/Update/mod.rs:181-186 | crates/libs/windows/src/Windows/System/mod.rs:28-33 | crates/libs/windows/src/Windows/System/mod.rs:276-281 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:127-132 | crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs:36-41 | crates/libs/windows/src/Windows/Web/Http/mod.rs:700-705 | crates/libs/windows/src/Windows/Web/Http/mod.rs:761-766 | crates/libs/windows/src/Windows/Web/Http/mod.rs:822-827 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1394-1399 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 60) · ×1
  • Duplicated block (6 lines × 60) crates/libs/windows/src/Windows/AI/Actions/mod.rs:902 — crates/libs/windows/src/Windows/AI/Actions/mod.rs:902-907 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:315-320 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:921-926 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:554-559 | crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs:204-209 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:49-54 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:745-750 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1054-1059 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1198-1203 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1427-1432 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1745-1750 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1960-1965 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:2014-2019 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:83-88 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:263-268 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:226-231 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:691-696 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7913-7918 | crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:105-110 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1565-1570 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:166-171 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:482-487 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1520-1525 | crates/libs/windows/src/Windows/Management/Update/mod.rs:866-871 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1716-1721 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:672-677 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:836-841 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1161-1166 | crates/libs/windows/src/Windows/Media/Core/mod.rs:1010-1015 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5686-5691 | crates/libs/windows/src/Windows/Media/Core/mod.rs:7424-7429 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:121-126 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:411-416 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1057-1062 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1151-1156 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1429-1434 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1480-1485 | crates/libs/windows/src/Windows/Media/Effects/mod.rs:1538-1543 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:890-895 | crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs:2272-2277 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:797-802 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:1095-1100 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:488-493 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:513-518 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1114-1119 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:919-924 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:545-550 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:815-820 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:884-889 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:943-948 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:1129-1134 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:947-952 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:361-366 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:577-582 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:321-326 | crates/libs/windows/src/Windows/Storage/Search/mod.rs:1289-1294 | crates/libs/windows/src/Windows/Storage/mod.rs:2954-2959 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1696-1701 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2763-2768 | crates/libs/windows/src/Windows/Web/Http/mod.rs:1315-1320 — before extracting anything, compare `crates/libs/windows/src/Windows/AI/Actions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 148) · ×1
  • Duplicated block (6 lines × 148) crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:667 — crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs:667-672 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:283-288 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:78-83 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:165-170 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:267-272 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:369-374 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:435-440 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:537-542 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:2016-2021 | crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2363-2368 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1446-1451 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:906-911 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:160-165 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:232-237 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:325-330 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:391-396 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1167-1172 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:3051-3056 | crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs:490-495 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1137-1142 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1188-1193 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2427-2432 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:318-323 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:390-395 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:468-473 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:540-545 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:612-617 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:714-719 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:789-794 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:873-878 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:969-974 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1044-1049 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1143-1148 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1215-1220 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1281-1286 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1377-1382 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1453-1458 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1762-1767 | crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs:315-320 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:711-716 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:930-935 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:765-770 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs:603-608 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:330-335 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:405-410 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:477-482 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:549-554 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:615-620 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:481-486 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:844-849 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:960-965 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1684-1689 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1753-1758 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3223-3228 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2264-2269 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3115-3120 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:466-471 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:499-504 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:532-537 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:613-618 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:832-837 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:56-61 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:130-135 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:215-220 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:298-303 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:372-377 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:716-721 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:802-807 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:876-881 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:950-955 | crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs:390-395 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:2901-2906 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:1115-1120 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:557-562 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:937-942 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1103-1108 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1177-1182 | crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs:1273-1278 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:884-889 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1016-1021 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1241-1246 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1300-1305 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1340-1345 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1618-1623 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1698-1703 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1962-1967 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2106-2111 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2498-2503 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2528-2533 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1927-1932 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:2008-2013 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3645-3650 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3807-3812 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4947-4952 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5061-5066 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5121-5126 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:588-593 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:963-968 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:914-919 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2134-2139 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2220-2225 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2253-2258 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2286-2291 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2319-2324 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2358-2363 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2391-2396 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2430-2435 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2463-2468 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2502-2507 | crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs:866-871 | crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs:547-552 | crates/libs/windows/src/Windows/Networking/Sockets/mod.rs:4192-4197 | crates/libs/windows/src/Windows/Security/DataProtection/mod.rs:102-107 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:958-963 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:289-294 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:313-318 | crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs:694-699 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:418-423 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:475-480 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:187-192 | crates/libs/windows/src/Windows/Storage/mod.rs:4221-4226 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2024-2029 | crates/libs/windows/src/Windows/System/mod.rs:1213-1218 | crates/libs/windows/src/Windows/System/mod.rs:3941-3946 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:123-128 | crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs:107-112 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2040-2045 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:72-77 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:1308-1313 | crates/libs/windows/src/Windows/UI/Shell/mod.rs:1359-1364 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:1260-1265 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:18-23 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:78-83 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:366-371 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:568-573 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:651-656 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:720-725 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:850-855 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:938-943 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:71-76 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:175-180 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:757-762 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:892-897 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:1071-1076 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:3587-3592 | crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs:283-288 | crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs:332-337 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1844-1849 — `crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 55 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 64) · ×1
  • Duplicated block (6 lines × 64) crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:12 — crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs:12-17 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:329-334 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:1260-1265 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:2531-2536 | crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs:194-199 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2135-2140 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2573-2578 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2827-2832 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2933-2938 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1904-1909 | crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:19-24 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:423-428 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:847-852 | crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs:139-144 | crates/libs/windows/src/Windows/ApplicationModel/Preview/mod.rs:66-71 | crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs:102-107 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:510-515 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:445-450 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:106-111 | crates/libs/windows/src/Windows/Devices/Display/mod.rs:14-19 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1016-1021 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:712-717 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:222-227 | crates/libs/windows/src/Windows/Globalization/mod.rs:1869-1874 | crates/libs/windows/src/Windows/Globalization/mod.rs:2656-2661 | crates/libs/windows/src/Windows/Graphics/Capture/mod.rs:208-213 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:380-385 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:134-139 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:362-367 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:449-454 | crates/libs/windows/src/Windows/Management/Deployment/Preview/mod.rs:45-50 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1078-1083 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:842-847 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:3922-3927 | crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs:208-213 | crates/libs/windows/src/Windows/Media/Core/mod.rs:406-411 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:176-181 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1234-1239 | crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs:494-499 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:582-587 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:547-552 | crates/libs/windows/src/Windows/Networking/mod.rs:126-131 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1262-1267 | crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs:199-204 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:74-79 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:809-814 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:1735-1740 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:1855-1860 | crates/libs/windows/src/Windows/Storage/mod.rs:2935-2940 | crates/libs/windows/src/Windows/Storage/mod.rs:5504-5509 | crates/libs/windows/src/Windows/System/Inventory/mod.rs:38-43 | crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs:271-276 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:907-912 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1118-1123 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1619-1624 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1862-1867 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:2648-2653 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:451-456 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:581-586 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4165-4170 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:6579-6584 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2612-2617 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2744-2749 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10275-10280 — `crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 13 separate duplicated blocks between them, totalling at least 73 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 165) · ×1
  • Duplicated block (6 lines × 165) crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:22 — crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:22-27 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:314-319 | crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:623-628 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:697-702 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:1707-1712 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3442-3447 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:438-443 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1558-1563 | crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs:1702-1707 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:879-884 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:2458-2463 | crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs:224-229 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:257-262 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:332-337 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:1786-1791 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2015-2020 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:2758-2763 | crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs:3169-3174 | crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs:248-253 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:578-583 | crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs:1469-1474 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs:719-724 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:1783-1788 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:472-477 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:620-625 | crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs:863-868 | crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs:22-27 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:764-769 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:821-826 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1002-1007 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1286-1291 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2161-2166 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2294-2299 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2519-2524 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2917-2922 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3145-3150 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1426-1431 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:940-945 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:1619-1624 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:357-362 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:8-13 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:868-873 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:930-935 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1399-1404 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:1510-1515 | crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs:106-111 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:1524-1529 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:353-358 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7055-7060 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7972-7977 | crates/libs/windows/src/Windows/Devices/Power/mod.rs:97-102 | crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs:219-224 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1354-1359 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1822-1827 | crates/libs/windows/src/Windows/Devices/Printers/mod.rs:1961-1966 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2613-2618 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:642-647 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:838-843 | crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs:711-716 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:342-347 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:402-407 | crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs:88-93 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:6-11 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:67-72 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:258-263 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:351-356 | crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs:460-465 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:841-846 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:976-981 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1117-1122 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:1410-1415 | crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs:2400-2405 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:509-514 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:582-587 | crates/libs/windows/src/Windows/Management/Deployment/mod.rs:3335-3340 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2062-2067 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2120-2125 | crates/libs/windows/src/Windows/Management/Update/Cluster/mod.rs:2414-2419 | crates/libs/windows/src/Windows/Management/Update/mod.rs:2768-2773 | crates/libs/windows/src/Windows/Management/mod.rs:116-121 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:276-281 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2015-2020 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2291-2296 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2328-2333 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2365-2370 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2402-2407 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2439-2444 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:2476-2481 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:5042-5047 | crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs:1024-1029 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6818-6823 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:3438-3443 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:4323-4328 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:439-444 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:1082-1087 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:507-512 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:676-681 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:996-1001 | crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs:374-379 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:387-392 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:854-859 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3163-3168 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5450-5455 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5481-5486 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5535-5540 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5990-5995 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:720-725 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:14-19 | crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs:317-322 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3743-3748 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:3848-3853 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:507-512 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:1001-1006 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:1043-1048 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1101-1106 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:407-412 | crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs:13-18 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:624-629 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:829-834 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:859-864 | crates/libs/windows/src/Windows/Security/DataProtection/mod.rs:126-131 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:37-42 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:173-178 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:982-987 | crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs:1013-1018 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:791-796 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:946-951 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1218-1223 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1265-1270 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1420-1425 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1508-1513 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1573-1578 | crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs:289-294 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:68-73 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:164-169 | crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs:210-215 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:919-924 | crates/libs/windows/src/Windows/Services/Maps/mod.rs:1351-1356 | crates/libs/windows/src/Windows/Services/Store/mod.rs:831-836 | crates/libs/windows/src/Windows/Services/Store/mod.rs:938-943 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2079-2084 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2360-2365 | crates/libs/windows/src/Windows/Services/Store/mod.rs:2646-2651 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:178-183 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1954-1959 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2006-2011 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2343-2348 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2596-2601 | crates/libs/windows/src/Windows/System/Diagnostics/Telemetry/mod.rs:68-73 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:925-930 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:1778-1783 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2048-2053 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2320-2325 | crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs:2489-2494 | crates/libs/windows/src/Windows/System/mod.rs:204-209 | crates/libs/windows/src/Windows/System/mod.rs:615-620 | crates/libs/windows/src/Windows/System/mod.rs:2701-2706 | crates/libs/windows/src/Windows/System/mod.rs:4175-4180 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:932-937 | crates/libs/windows/src/Windows/UI/Shell/CompanionWindows/mod.rs:121-126 | crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs:30-35 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:12385-12390 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7449-7454 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:8102-8107 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:10706-10711 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 14 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 63) · ×1
  • Duplicated block (6 lines × 63) crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:277 — crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs:277-282 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:72-77 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:159-164 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:261-266 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:363-368 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:429-434 | crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs:531-536 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:154-159 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:226-231 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:319-324 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs:385-390 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1233-1238 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:312-317 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:384-389 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:462-467 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:534-539 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:606-611 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:708-713 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:783-788 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:867-872 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:963-968 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1038-1043 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1137-1142 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1209-1214 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1275-1280 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1371-1376 | crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs:1447-1452 | crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs:84-89 | crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs:279-284 | crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs:778-783 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:759-764 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:324-329 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:399-404 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:471-476 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:543-548 | crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs:609-614 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:50-55 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:124-129 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:292-297 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:366-371 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:710-715 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:796-801 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:870-875 | crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs:944-949 | crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs:437-442 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1972-1977 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:816-821 | crates/libs/windows/src/Windows/Media/Core/mod.rs:4830-4835 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5007-5012 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5031-5036 | crates/libs/windows/src/Windows/Media/Core/mod.rs:5166-5171 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:806-811 | crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs:226-231 | crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs:516-521 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:246-251 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:710-715 | crates/libs/windows/src/Windows/UI/StartScreen/mod.rs:1305-1310 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:599-604 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:675-680 | crates/libs/windows/src/Windows/UI/Text/Core/mod.rs:874-879 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1851-1856 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:11171-11176 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:16131-16136 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 49) · ×1
  • Duplicated block (6 lines × 49) crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:784 — crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs:784-789 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3558-3563 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:1390-1395 | crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs:4291-4296 | crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs:68-73 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:71-76 | crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs:251-256 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:124-129 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:93-98 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:546-551 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:653-658 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1386-1391 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1430-1435 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1558-1563 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1616-1621 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1723-1728 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1767-1772 | crates/libs/windows/src/Windows/Foundation/mod.rs:451-456 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:1033-1038 | crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs:624-629 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:1307-1312 | crates/libs/windows/src/Windows/Management/Update/mod.rs:1691-1696 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6281-6286 | crates/libs/windows/src/Windows/Media/Import/mod.rs:1276-1281 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:1726-1731 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:313-318 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:81-86 | crates/libs/windows/src/Windows/Media/mod.rs:2395-2400 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:1360-1365 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4739-4744 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1732-1737 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:2129-2134 | crates/libs/windows/src/Windows/Networking/mod.rs:138-143 | crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs:801-806 | crates/libs/windows/src/Windows/System/mod.rs:3775-3780 | crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs:184-189 | crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs:396-401 | crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs:543-548 | crates/libs/windows/src/Windows/UI/Core/mod.rs:608-613 | crates/libs/windows/src/Windows/UI/Text/mod.rs:3571-3576 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:215-220 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3066-3071 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3513-3518 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4861-4866 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6843-6848 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3310-3315 | crates/libs/windows/src/Windows/Win32/fsrmpipeline/mod.rs:2407-2412 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:4292-4297 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:6635-6640 — `crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 14 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 58) · ×1
  • Duplicated block (6 lines × 58) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1549 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:1549-1554 | crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:3225-3230 | crates/libs/windows/src/Windows/Devices/Background/mod.rs:6-11 | crates/libs/windows/src/Windows/Devices/Background/mod.rs:42-47 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:1055-1060 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:14-19 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:247-252 | crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs:1050-1055 | crates/libs/windows/src/Windows/Devices/Display/mod.rs:8-13 | crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs:148-153 | crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs:62-67 | crates/libs/windows/src/Windows/Devices/I2c/mod.rs:129-134 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:180-185 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:275-280 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:252-257 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:765-770 | crates/libs/windows/src/Windows/Devices/Midi/mod.rs:1017-1022 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:9-14 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1064-1069 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1477-1482 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:1746-1751 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2023-2028 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2302-2307 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:2550-2555 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:6376-6381 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:7320-7325 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:8154-8159 | crates/libs/windows/src/Windows/Devices/Power/mod.rs:6-11 | crates/libs/windows/src/Windows/Devices/Scanners/mod.rs:823-828 | crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs:27-32 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:345-350 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:604-609 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:759-764 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1595-1600 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:1792-1797 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5649-5654 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:5874-5879 | crates/libs/windows/src/Windows/Devices/Sensors/mod.rs:6077-6082 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:3066-3071 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:644-649 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1754-1759 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:2455-2460 | crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs:93-98 | crates/libs/windows/src/Windows/Devices/Spi/mod.rs:381-386 | crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs:637-642 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:264-269 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1939-1944 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:5084-5089 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:6812-6817 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3833-3838 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:3952-3957 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4188-4193 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4624-4629 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4691-4696 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:4860-4865 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5017-5022 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:878-883 | crates/libs/windows/src/Windows/System/mod.rs:4044-4049 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 61) · ×1
  • Duplicated block (6 lines × 61) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:243 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:243-248 | crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs:344-349 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:2484-2489 | crates/libs/windows/src/Windows/ApplicationModel/mod.rs:3115-3120 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2210-2215 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:2393-2398 | crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs:3065-3070 | crates/libs/windows/src/Windows/Devices/Radios/mod.rs:56-61 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:32-37 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:106-111 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:352-357 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:515-520 | crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs:603-608 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:591-596 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1009-1014 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1102-1107 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1195-1200 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1288-1293 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1388-1393 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1537-1542 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1645-1650 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1742-1747 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1835-1840 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:1928-1933 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2021-2026 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2114-2119 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2250-2255 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2335-2340 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2428-2433 | crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs:2521-2526 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:13-18 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:333-338 | crates/libs/windows/src/Windows/Management/mod.rs:207-212 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1945-1950 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:493-498 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:793-798 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2514-2519 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2547-2552 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:2653-2658 | crates/libs/windows/src/Windows/Media/Casting/mod.rs:7-12 | crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs:80-85 | crates/libs/windows/src/Windows/Media/PlayTo/mod.rs:335-340 | crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs:1493-1498 | crates/libs/windows/src/Windows/Media/mod.rs:1756-1761 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:98-103 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:519-524 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:626-631 | crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs:5184-5189 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:985-990 | crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs:374-379 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:354-359 | crates/libs/windows/src/Windows/Security/Credentials/mod.rs:1167-1172 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:1310-1315 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:1728-1733 | crates/libs/windows/src/Windows/System/Update/mod.rs:88-93 | crates/libs/windows/src/Windows/System/Update/mod.rs:175-180 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2081-2086 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2119-2124 | crates/libs/windows/src/Windows/UI/Shell/Tasks/mod.rs:124-129 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1620-1625 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1092-1097 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/ApplicationModel/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 38) · ×1
  • Duplicated block (6 lines × 38) crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2914 — crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs:2914-2919 | crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs:7-12 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:6-11 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:57-62 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:118-123 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:348-353 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:416-421 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:513-518 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:579-584 | crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs:693-698 | crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs:23-28 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:1180-1185 | crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs:2659-2664 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:568-573 | crates/libs/windows/src/Windows/Devices/WiFi/mod.rs:678-683 | crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs:1449-1454 | crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs:40-45 | crates/libs/windows/src/Windows/Management/Setup/mod.rs:377-382 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:991-996 | crates/libs/windows/src/Windows/Networking/Vpn/mod.rs:1848-1853 | crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs:155-160 | crates/libs/windows/src/Windows/Security/ExchangeActiveSyncProvisioning/mod.rs:13-18 | crates/libs/windows/src/Windows/Security/Isolation/mod.rs:860-865 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2242-2247 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2291-2296 | crates/libs/windows/src/Windows/System/Power/Thermal/mod.rs:137-142 | crates/libs/windows/src/Windows/UI/Core/mod.rs:602-607 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:67-72 | crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs:777-782 | crates/libs/windows/src/Windows/UI/Input/Preview/Text/mod.rs:867-872 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:1419-1424 | crates/libs/windows/src/Windows/UI/Notifications/mod.rs:3453-3458 | crates/libs/windows/src/Windows/UI/Text/mod.rs:29-34 | crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs:143-148 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1408-1413 | crates/libs/windows/src/Windows/Web/UI/mod.rs:1602-1607 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:103-108 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1659-1664 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs` and `crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 43) · ×1
  • Duplicated block (6 lines × 43) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:69 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs:69-74 | crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs:969-974 | crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs:686-691 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:535-540 | crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs:6799-6804 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:355-360 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1506-1511 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:1873-1878 | crates/libs/windows/src/Windows/Media/Audio/mod.rs:4650-4655 | crates/libs/windows/src/Windows/Media/Control/mod.rs:547-552 | crates/libs/windows/src/Windows/Media/Core/mod.rs:3549-3554 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6301-6306 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6610-6615 | crates/libs/windows/src/Windows/Media/Core/mod.rs:6738-6743 | crates/libs/windows/src/Windows/Media/Editing/mod.rs:747-752 | crates/libs/windows/src/Windows/Media/Miracast/mod.rs:626-631 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:2352-2357 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3186-3191 | crates/libs/windows/src/Windows/Media/Playback/mod.rs:3802-3807 | crates/libs/windows/src/Windows/Media/mod.rs:1738-1743 | crates/libs/windows/src/Windows/Media/mod.rs:2559-2564 | crates/libs/windows/src/Windows/Perception/People/mod.rs:261-266 | crates/libs/windows/src/Windows/Perception/Spatial/mod.rs:1222-1227 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:641-646 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2180-2185 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2647-2652 | crates/libs/windows/src/Windows/Storage/Streams/mod.rs:2903-2908 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:1939-1944 | crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs:2991-2996 | crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs:2072-2077 | crates/libs/windows/src/Windows/UI/Input/mod.rs:59-64 | crates/libs/windows/src/Windows/UI/Input/mod.rs:120-125 | crates/libs/windows/src/Windows/UI/Input/mod.rs:790-795 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2233-2238 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2303-2308 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2357-2362 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2399-2404 | crates/libs/windows/src/Windows/UI/Input/mod.rs:2727-2732 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3739-3744 | crates/libs/windows/src/Windows/UI/Input/mod.rs:3896-3901 | crates/libs/windows/src/Windows/UI/Input/mod.rs:4136-4141 | crates/libs/windows/src/Windows/UI/Text/mod.rs:490-495 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:7467-7472 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/mod.rs` and `crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 34) · ×1
  • Duplicated block (6 lines × 34) crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1222 — crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1222-1227 | crates/libs/windows/src/Windows/Win32/certadm/mod.rs:1510-1515 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:377-382 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:708-713 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2284-2289 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2515-2520 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:2852-2857 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3279-3284 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:3879-3884 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4312-4317 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4705-4710 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:4990-4995 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5362-5367 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:5524-5529 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:6702-6707 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10206-10211 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10736-10741 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:13769-13774 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14090-14095 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:14228-14233 | crates/libs/windows/src/Windows/Win32/comadmin/mod.rs:1274-1279 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:4893-4898 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7796-7801 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:7973-7978 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:8073-8078 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:9446-9451 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:10580-10585 | crates/libs/windows/src/Windows/Win32/control/mod.rs:28-33 | crates/libs/windows/src/Windows/Win32/exdisp/mod.rs:3034-3039 | crates/libs/windows/src/Windows/Win32/fsrm/mod.rs:1072-1077 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:1479-1484 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:2694-2699 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:3460-3465 | crates/libs/windows/src/Windows/Win32/iads/mod.rs:5476-5481 — `crates/libs/windows/src/Windows/Win32/certadm/mod.rs` and `crates/libs/windows/src/Windows/Win32/certenroll/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 18 separate duplicated blocks between them, totalling at least 155 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (7 lines × 18) · ×1
  • Duplicated block (7 lines × 18) crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2591 — crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:2591-2597 | crates/libs/windows/src/Windows/Win32/d3d10/mod.rs:7677-7683 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5372-5378 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:11070-11076 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:15282-15288 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:15323-15329 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:9446-9452 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:10462-10468 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:12327-12333 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:15034-15040 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:16206-16212 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:16375-16381 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:16740-16746 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18468-18474 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:18550-18556 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19854-19860 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19914-19920 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:19980-19986 — `crates/libs/windows/src/Windows/Win32/d3d10/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 65 separate duplicated blocks between them, totalling at least 494 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (6 lines × 131) · ×1
  • Duplicated block (6 lines × 131) crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2524 — crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs:2524-2529 | crates/libs/windows/src/Windows/Data/Json/mod.rs:327-332 | crates/libs/windows/src/Windows/Data/Json/mod.rs:333-338 | crates/libs/windows/src/Windows/Devices/Lights/mod.rs:573-578 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:13-18 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:248-253 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1605-1610 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1887-1892 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:1899-1904 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2129-2134 | crates/libs/windows/src/Windows/Gaming/Input/mod.rs:2135-2140 | crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs:43-48 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:211-216 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:1722-1727 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:1952-1957 | crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs:4325-4330 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1423-1428 | crates/libs/windows/src/Windows/UI/Core/mod.rs:1430-1435 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3426-3431 | crates/libs/windows/src/Windows/UI/Core/mod.rs:3433-3438 | REDACTED:630-635 | REDACTED:636-641 | REDACTED:1026-1031 | REDACTED:2100-2105 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:31-36 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:518-523 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:785-790 | crates/libs/windows/src/Windows/Win32/certenc/mod.rs:1004-1009 | crates/libs/windows/src/Windows/Win32/certenroll/mod.rs:10943-10948 | crates/libs/windows/src/Windows/Win32/certview/mod.rs:64-69 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:80-85 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:149-154 | crates/libs/windows/src/Windows/Win32/commoncontrols/mod.rs:155-160 | crates/libs/windows/src/Windows/Win32/comsvcs/mod.rs:3478-3483 | crates/libs/windows/src/Windows/Win32/control/mod.rs:1228-1233 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:204-209 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:358-363 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:365-370 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:374-379 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:936-941 | crates/libs/windows/src/Windows/Win32/credentialprovider/mod.rs:1107-1112 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:344-349 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:437-442 | crates/libs/windows/src/Windows/Win32/ctfutb/mod.rs:534-539 | crates/libs/windows/src/Windows/Win32/d3d12/mod.rs:17981-17986 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2199-2204 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2432-2437 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2557-2562 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:2766-2771 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3054-3059 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3108-3113 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3270-3275 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3279-3284 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3288-3293 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3359-3364 | crates/libs/windows/src/Windows/Win32/d3d9/mod.rs:3491-3496 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:7254-7259 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:8829-8834 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:10419-10424 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:12021-12026 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:13638-13643 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:33901-33906 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36081-36086 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36088-36093 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36095-36100 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36762-36767 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36769-36774 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:36776-36781 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:37138-37143 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:38046-38051 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:39082-39087 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:41272-41277 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:43566-43571 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:44209-44214 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45894-45899 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45908-45913 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45922-45927 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45936-45941 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45950-45955 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45975-45980 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:45989-45994 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46003-46008 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46017-46022 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46582-46587 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46596-46601 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46610-46615 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46624-46629 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46638-46643 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46663-46668 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46677-46682 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46691-46696 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:46705-46710 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47369-47374 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47383-47388 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47397-47402 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47411-47416 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47425-47430 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47450-47455 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47464-47469 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47478-47483 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47492-47497 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:47569-47574 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48341-48346 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48355-48360 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48369-48374 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48383-48388 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48397-48402 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48422-48427 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48436-48441 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48450-48455 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48464-48469 | crates/libs/windows/src/Windows/Win32/dbgeng/mod.rs:48541-48546 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:437-442 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1340-1345 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1411-1416 | crates/libs/windows/src/Windows/Win32/devicetopology/mod.rs:1859-1864 | crates/libs/windows/src/Windows/Win32/dxcore_interface/mod.rs:302-307 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:923-928 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:992-997 | crates/libs/windows/src/Windows/Win32/dxva2api/mod.rs:998-1003 | crates/libs/windows/src/Windows/Win32/endpointvolume/mod.rs:67-72 | crates/libs/windows/src/Windows/Win32/endpointvolume/mod.rs:73-78 | crates/libs/windows/src/Windows/Win32/endpointvolume/mod.rs:442-447 | crates/libs/windows/src/Windows/Win32/evr/mod.rs:745-750 | crates/libs/windows/src/Windows/Win32/evr/mod.rs:756-761 | crates/libs/windows/src/Windows/Win32/fhcfg/mod.rs:57-62 | crates/libs/windows/src/Windows/Win32/fhcfg/mod.rs:433-438 | crates/libs/windows/src/Windows/Win32/gameux/mod.rs:210-215 | crates/libs/windows/src/Windows/Win32/gpedit/mod.rs:94-99 | crates/libs/windows/src/Windows/Win32/gpedit/mod.rs:320-325 | crates/libs/windows/src/Windows/Win32/hlink/mod.rs:569-574 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs` and `crates/libs/windows/src/Windows/Gaming/Input/mod.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 25) · ×1
  • Duplicated block (6 lines × 25) crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1113 — crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:1113-1118 | crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs:2370-2375 | crates/libs/windows/src/Windows/Devices/Sms/mod.rs:1953-1958 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:135-140 | crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs:301-306 | crates/libs/windows/src/Windows/Graphics/Display/mod.rs:992-997 | crates/libs/windows/src/Windows/Graphics/Printing/mod.rs:2080-2085 | crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs:915-920 | crates/libs/windows/src/Windows/Media/Capture/mod.rs:7779-7784 | crates/libs/windows/src/Windows/Media/Devices/mod.rs:509-514 | crates/libs/windows/src/Windows/Media/Protection/mod.rs:645-650 | crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs:1761-1766 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:57-62 | crates/libs/windows/src/Windows/Networking/Proximity/mod.rs:96-101 | crates/libs/windows/src/Windows/Storage/Provider/mod.rs:2480-2485 | crates/libs/windows/src/Windows/Storage/mod.rs:621-626 | crates/libs/windows/src/Windows/Storage/mod.rs:5647-5652 | crates/libs/windows/src/Windows/System/Threading/mod.rs:187-192 | crates/libs/windows/src/Windows/System/Threading/mod.rs:226-231 | crates/libs/windows/src/Windows/System/Threading/mod.rs:265-270 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:253-258 | crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs:983-988 | crates/libs/windows/src/Windows/UI/Core/mod.rs:4860-4865 | crates/libs/windows/src/Windows/UI/Popups/mod.rs:517-522 | crates/libs/windows/src/Windows/UI/WebUI/mod.rs:957-962 — before extracting anything, compare `crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs` and `crates/libs/windows/src/Windows/Devices/Sms/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7 lines × 25) · ×1
  • Duplicated block (7 lines × 25) crates/libs/windows/src/Windows/Win32/d2d/mod.rs:1697 — crates/libs/windows/src/Windows/Win32/d2d/mod.rs:1697-1703 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:1846-1852 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:3738-3744 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5263-5269 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:5423-5429 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:7632-7638 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:7853-7859 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:8250-8256 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:8867-8873 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:9290-9296 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10040-10046 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10590-10596 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10669-10675 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10912-10918 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10928-10934 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10938-10944 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:10945-10951 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:11412-11418 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:12001-12007 | crates/libs/windows/src/Windows/Win32/d2d/mod.rs:12062-12068 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5150-5156 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:5953-5959 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6411-6417 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6547-6553 | crates/libs/windows/src/Windows/Win32/d3d11/mod.rs:6683-6689 — `crates/libs/windows/src/Windows/Win32/d2d/mod.rs` and `crates/libs/windows/src/Windows/Win32/d3d11/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D44 · Platform End-of-Life · End-of-life runtime · ×1
  • End-of-life runtime: .NET net9.0 — crates/samples/robot/client_cs/client.csproj declares .NET net9.0 as this project's target framework, and .NET 9 STS, support ended 2026-05-12. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-05-12 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended.
D5 · Coupling · Unstable project windows-composition · ×1
  • Unstable project windows-composition — windows-composition has instability 0.83 with 1 dependents.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — no coverage collector is wired up — Coverage NOT MEASURED: `--collect:"XPlat Code Coverage"` names a data collector that ships in the `coverlet.collector` package, and this repository wires up none — no test project references it and no runsettings declares one. The absence of coverage here is therefore not evidence about the suite or about our analyzer environment: without a collector, `--collect` produces nothing even from a suite that builds and passes. Add a `coverlet.collector` PackageReference to the test project(s) (or commit the Cobertura/OpenCover/lcov report your CI produces) and real coverage will be measured. It is excluded from the score rather than counted as a near-zero defect.
M1 · Documentation (README) · README may be stale · ×1
  • README may be stale — 2622 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
P12 · CI test-gate honesty · Coverage collected but not gated · ×1
  • Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
P2 · Observability · No structured logging · ×1
  • No structured logging — No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
SC1 · Supply-chain hygiene · NuGet dependencies are not locked · ×1
  • NuGet dependencies are not locked — No packages.lock.json and no central package management — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
Minor — 9 finding(s)
D19 · Documentation Quality · Documentation · ×1
  • Documentation: no architecture or design documentation docs/readme.md — The README omits architecture/design documentation for the Windows metadata pipeline (headers -> RDL -> winmd), which is present in the referenced architecture/Docs markdown files.
D34 · Knowledge Freshness · Orphaned files with no living knowledge · ×1
  • Orphaned files with no living knowledge — 1 of 1456 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 1456 of the 1848 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: crates/libs/core/src/compose.rs. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M3 · Folder & project structure · Inconsistent root namespaces · ×1
  • Inconsistent root namespaces — Only 2/4 projects share a common root namespace — the code's module identity is inconsistent.
P6 · Release Hygiene · No changelog · ×1
  • No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-d7cafbc3f3b440fe8e5d75b09854ab37/history.json --exit-code 0 --source .0—
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off .46artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).0—
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).0—

Run 01a0eaa3-e5db-7154-8ade-1e1d486c07d9 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md