Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9978 [Rust] Umbrella issue for clippy integration
  3. ARROW-10108

[Rust] [Parquet] Fix compiler warning about unused return value

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Rust
    • None

    Description

      When compiling with latest nightly, this warning is produced:

      warning: unused return value of `std::mem::replace` that must be used
         --> parquet/src/encodings/encoding.rs:391:9
          |
      391 |         mem::replace(&mut self.hash_slots, new_hash_slots);
          |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          |
          = note: `#[warn(unused_must_use)]` on by default
          = note: if you don't need the old value, you can just assign the new value directly 

      Attachments

        Activity

          People

            nevi_me Neville Dipale
            andygrove Andy Grove
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment