Skip to content

Unnecessarily long type name in Ch 13 #1869

Closed
@xStrom

Description

@xStrom

In chapter 13.3, in listing 13-26 and 13-27 the new function declaration is:

pub fn new(mut args: std::env::Args) -> Result<Config, &'static str>

Isn't the use of std:: here too much? Is it idiomatic to write that type out fully even though we already have use std::env; in the same source file and could use env::Args?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions