Skip to content

Commit 9433632

Browse files
author
Luca Palmieri
committed
Refactor comments.
1 parent 0bfef73 commit 9433632

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

jira-wip/src/koans/03_cli/00_cli.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@
1313
/// Comments on each of the field and each of the `Command` variant will be shown in the
1414
/// help page of those commands!
1515
///
16-
/// You can learn more about `structopt` looking at their documentation: https://docs.rs/structopt/0.3.12/structopt/
17-
/// You can see the code generated by `structopt` using `cargo expand`, see https://github.com/dtolnay/cargo-expand
16+
/// You can learn more about `structopt` looking at their documentation:
17+
/// https://docs.rs/structopt/0.3.12/structopt/
18+
///
19+
/// You can see the code generated by `structopt` using `cargo expand`:
20+
/// https://github.com/dtolnay/cargo-expand
1821
///
1922
/// Fill in the missing fields!
2023
///
@@ -97,19 +100,20 @@ pub mod cli {
97100
///
98101
/// `dyn Error` is the syntax of a trait object, a more advanced topic that we will not be
99102
/// touching in this workshop.
100-
/// Check its section in the Rust book if you are curious: https://doc.rust-lang.org/book/ch17-02-trait-objects.html#using-trait-objects-that-allow-for-values-of-different-types
103+
/// Check its section in the Rust book if you are curious:
104+
/// https://doc.rust-lang.org/book/ch17-02-trait-objects.html#using-trait-objects-that-allow-for-values-of-different-types
101105
pub fn handle_command(ticket_store: &mut TicketStore, command: Command) -> Result<(), Box<dyn Error>> {
102106
match command {
103107
Command::Create { description, title } => {
104-
__
108+
todo!()
105109
}
106110
Command::Edit {
107111
id,
108112
title,
109113
description,
110114
status,
111115
} => {
112-
__
116+
todo!()
113117
}
114118
Command::Delete { ticket_id } => match ticket_store.delete(&ticket_id) {
115119
Some(deleted_ticket) => println!(
@@ -122,7 +126,7 @@ pub mod cli {
122126
),
123127
},
124128
Command::List => {
125-
__
129+
todo!()
126130
}
127131
}
128132
Ok(())

0 commit comments

Comments
 (0)