Unused import warning
See original GitHub issueCurrently, we add all the encoder imports without taking into account if they are needed. That causes a lot of warning messages like the following:
[warn] /Users/fede/development/workspaces/47deg/mu/modules/server/src/test/scala/protocol/Utils.scala:77:6: Unused import
[warn] @service(Protobuf) trait ProtoRPCService[F[_]] {
It’d be nice to find a way of hiding those messages, by only adding the import when it’s necessary or by adding some flag.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Rust: Unused import warnings · Issue #6191 · google/flatbuffers
Is it possible to get rid of the irritating "unused import" warnings other than #![allow(dead_code)] (crate-level disable)?.
Read more >unused imports warning funkyness : r/rust - Reddit
Unless I am missing something, it appears that the unused imports warning is incorrect. Take the following code: use std::io::BufReader; use…
Read more >How to allow dead_code and unused_imports for dev builds ...
The unused imports and dead code warnings are the most common that I've found while learning Rust, and they get annoying after awhile...
Read more >4.8. Warnings and sanity-checking - downloads for Haskell.org
Report any modules that are explicitly imported but never used. However, the form import M() is never reported as an unused import, because...
Read more >Unused imports warning - Question - Scala Users
Is there a Scala 3 compiler option to report unused imports? I tried -Wunused:all , but nothing is reported. I believe -Xlint did...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, I think these warnings got introduced (by me) in the rewrite to paradise macros.
Lately, in droste macros I’ve been using FQCN, for avoiding imports and requiring implicits through method params instead of importing the whole package, I think it’s a better approach
oh, thanks for trying