Skip to content

chain fix + qol

chain fix + qol #355

GitHub Actions / clippy failed Apr 10, 2024 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • cargo 1.77.2 (e52e36006 2024-03-26)
  • clippy 0.1.77 (25ef9e3 2024-04-09)

Annotations

Check failure on line 194 in unreal_mod_integrator/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `data_table_export .table .data.get(0)`

error: accessing first element with `data_table_export
               .table
               .data.get(0)`
   --> unreal_mod_integrator/src/lib.rs:191:15
    |
191 |       let tab = data_table_export
    |  _______________^
192 | |         .table
193 | |         .data
194 | |         .get(0)
    | |_______________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
    = note: `-D clippy::get-first` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::get_first)]`
help: try
    |
191 ~     let tab = data_table_export
192 +         .table
193 +         .data.first()
    |