mirror of
https://github.com/bvanroll/unnamed_chatgpt_project.git
synced 2025-08-29 03:52:42 +00:00
pfffffffff builds on windows not working
This commit is contained in:
@@ -81,22 +81,39 @@ fn main() {
|
|||||||
for mut human in &mut Humans {
|
for mut human in &mut Humans {
|
||||||
println!("{}'s attributes ", human.firstName.clone());
|
println!("{}'s attributes ", human.firstName.clone());
|
||||||
let mut h = human.clone();
|
let mut h = human.clone();
|
||||||
match looper.next().expect("euh").first() {
|
match looper.next() {
|
||||||
Ok(gender) => h.gender = gender.answer.clone(),
|
Some(item) => match item.first() {
|
||||||
Err(e) => println!("failed to get gender for {}: {:?}", human.firstName.clone(), e)
|
Some(gender) => h.gender = gender.answer.clone(),
|
||||||
|
None => println!("failed to get gender for {}", human.firstName.clone())
|
||||||
|
},
|
||||||
|
None => { println!("euh"); }
|
||||||
}
|
}
|
||||||
match looper.next().expect("euh").first() {
|
|
||||||
Ok(age) => h.age = age.answer.clone(),
|
match looper.next() {
|
||||||
Err(e) => println!("failed to get age for {}: {:?}", human.firstName.clone(), e)
|
Some(item) => match item.first() {
|
||||||
|
Some(age) => h.age = age.answer.clone(),
|
||||||
|
None => println!("failed to get age for {}", human.firstName.clone())
|
||||||
|
|
||||||
|
},
|
||||||
|
None => { println!("euh"); }
|
||||||
}
|
}
|
||||||
match looper.next().expect("euh").first() {
|
|
||||||
Ok(country) => h.country = country.answer.clone(),
|
match looper.next() {
|
||||||
Err(e) => println!("failed to get country for {}: {:?}", human.firstName.clone(), e)
|
Some(item) => match item.first() {
|
||||||
|
Some(country) => h.country = country.answer.clone(),
|
||||||
|
None => println!("failed to get country for {}", human.firstName.clone())
|
||||||
|
},
|
||||||
|
None => { println!("euh"); }
|
||||||
}
|
}
|
||||||
match looper.next().expect("euh").first() {
|
|
||||||
Ok(job) => h.job = job.answer.clone(),
|
match looper.next() {
|
||||||
Err(e) => println!("failed to get job for {}: {:?}", human.firstName.clone(), e)
|
Some(item) => match item.first() {
|
||||||
|
Some(job) => h.job= job.answer.clone(),
|
||||||
|
None => println!("failed to get job for {}", human.firstName.clone())
|
||||||
|
},
|
||||||
|
None => { println!("euh"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
finishedHumans.push(h);
|
finishedHumans.push(h);
|
||||||
println!("{} to go", l - i);
|
println!("{} to go", l - i);
|
||||||
i = i+1;
|
i = i+1;
|
||||||
|
Reference in New Issue
Block a user