Skip to content

Commit

Permalink
Merge branch 'french-release' into french-unreleased
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimskapt committed Nov 22, 2021
2 parents 5059194 + 8b0ed18 commit 7ef9b27
Show file tree
Hide file tree
Showing 720 changed files with 2,348 additions and 2,051 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "minigrep"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct Config {

// ANCHOR: ch13
impl Config {
pub fn new(args: &[String]) -> Result<Config, &'static str> {
pub fn new(args: &[String]) -> Result<Config, &str> {
if args.len() < 3 {
return Err("not enough arguments");
}
Expand Down Expand Up @@ -104,5 +104,3 @@ Trust me.";
);
}
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "minigrep"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct Config {
}

impl Config {
pub fn new(args: &[String]) -> Result<Config, &'static str> {
pub fn new(args: &[String]) -> Result<Config, &str> {
if args.len() < 3 {
return Err("not enough arguments");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "iterators"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "iterators"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "iterators"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ mod tests {
}
// ANCHOR_END: here
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "iterators"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ mod tests {
}
// ANCHOR_END: here
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "iterators"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ cargo run
Compiling iterators v0.1.0 (file:///projects/iterators)
warning: unused `std::iter::Map` that must be used
warning: unused `Map` that must be used
-- > src/main.rs:4:5
|
4 | v1.iter().map(|x| x + 1);
Expand All @@ -9,5 +9,6 @@ warning: unused `std::iter::Map` that must be used
= note: `#[warn(unused_must_use)]` on by default
= note: iterators are lazy and do nothing unless consumed

warning: `iterators` (bin "iterators") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 0.47s
Running `target/debug/iterators`
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "iterators"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "shoe_size"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ struct Shoe {
style: String,
}

fn shoes_in_my_size(shoes: Vec<Shoe>, shoe_size: u32) -> Vec<Shoe> {
fn shoes_in_size(shoes: Vec<Shoe>, shoe_size: u32) -> Vec<Shoe> {
shoes.into_iter().filter(|s| s.size == shoe_size).collect()
}

Expand All @@ -29,7 +29,7 @@ mod tests {
},
];

let in_my_size = shoes_in_my_size(shoes, 10);
let in_my_size = shoes_in_size(shoes, 10);

assert_eq!(
in_my_size,
Expand All @@ -46,5 +46,3 @@ mod tests {
);
}
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "counter"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ impl Counter {
Counter { count: 0 }
}
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "counter"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ impl Iterator for Counter {
}
}
// ANCHOR_END: here

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "counter"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ mod tests {
}
// ANCHOR_END: here
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "counter"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ mod tests {
}
// ANCHOR_END: here
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "minigrep"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct Config {
}

impl Config {
pub fn new(args: &[String]) -> Result<Config, &'static str> {
pub fn new(args: &[String]) -> Result<Config, &str> {
if args.len() < 3 {
return Err("not enough arguments");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "minigrep"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "minigrep"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,3 @@ Trust me.";
);
}
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "minigrep"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "my_crate"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "my_crate"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "art"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ pub mod utils {
pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor {
// --snip--
// ANCHOR_END: here
SecondaryColor::Orange
unimplemented!();
// ANCHOR: here
}
}
// ANCHOR_END: here

fn main() {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "art"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "art"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "art"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "add-one"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "adder"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "adder"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "add-one"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "adder"
version = "0.1.0"
authors = ["Your Name <[email protected]>"]
edition = "2018"

[dependencies]
Expand Down
Loading

0 comments on commit 7ef9b27

Please sign in to comment.