diff --git a/listings/ch13-functional-features/listing-13-26/src/lib.rs b/listings/ch13-functional-features/listing-13-26/src/lib.rs index 44f0c7ee21..2cb0bea7dd 100644 --- a/listings/ch13-functional-features/listing-13-26/src/lib.rs +++ b/listings/ch13-functional-features/listing-13-26/src/lib.rs @@ -10,7 +10,7 @@ pub struct Config { // ANCHOR: here impl Config { - pub fn new(mut args: std::env::Args) -> Result { + pub fn new(mut args: env::Args) -> Result { // --snip-- // ANCHOR_END: here if args.len() < 3 { diff --git a/listings/ch13-functional-features/listing-13-27/src/lib.rs b/listings/ch13-functional-features/listing-13-27/src/lib.rs index a4c58d9bdd..61d828aab4 100644 --- a/listings/ch13-functional-features/listing-13-27/src/lib.rs +++ b/listings/ch13-functional-features/listing-13-27/src/lib.rs @@ -10,7 +10,7 @@ pub struct Config { // ANCHOR: here impl Config { - pub fn new(mut args: std::env::Args) -> Result { + pub fn new(mut args: env::Args) -> Result { args.next(); let query = match args.next() {