Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4330

Allow unused crates in Rust files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently thrift generated .rs files include following attributes:

      #![allow(unused_imports)]
      #![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments, type_complexity))]
      #![cfg_attr(rustfmt, rustfmt_skip)]

      I propose to add
      #![allow(unused_extern_crates)]

      to remove warning when using Rust nightly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sadikovi Ivan Sadikov
                Reporter:
                sadikovi Ivan Sadikov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: