warning glob-import
What it means#
use path.* imports all public names. In a library this makes the set of names depend on the imported module's growth, so it is a warning there (§2.2). Applications may use it freely.
Example#
// in a library package (one without `main`) a glob import is refused
use std.time.* // <- glob-import
pub fn timeout() -> Duration { 3s }How to fix#
use std.time { Duration }
pub fn timeout() -> Duration { 3s }List the names you need explicitly in braces.