## Compiler version `3.3.5`, `3.6.4`, `3.7.0` ## Minimized code ```scala import scribe.* @main def run: Unit = Logger.root.withHandler(minimumLevel = Some(Level.Error)).replace(): Unit ``` https://scastie.scala-lang.org/a9rhjXNDS72Ve5vg8XOrrw ## Output ``` discarded non-Unit value of type scribe.Logger. Add : Unit to discard silently. ``` ## Expectation The `: Unit` should remove the warning ## Workaround ```scala val _ = Logger.root.withHandler(minimumLevel = Some(Level.Error)).replace() ``` Thanks