Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions quizzes/ch10-04-inventory.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ struct TestResult {
curve: Option<usize>
}
impl TestResult {
pub fn get_curve(&self) -> &Option<usize> {
&self.curve
pub fn get_curve(&self) -> &Option<usize> {
&self.curve
}

/// If there is a curve, then increments all
Expand Down Expand Up @@ -222,8 +222,8 @@ struct TestResult {
curve: Option<usize>
}
impl TestResult {
pub fn get_curve(&self) -> &Option<usize> {
&self.curve
pub fn get_curve(&self) -> &Option<usize> {
&self.curve
}

/// If there is a curve, then increments all
Expand Down Expand Up @@ -310,8 +310,8 @@ struct TestResult {
curve: Option<usize>
}
impl TestResult {
pub fn get_curve(&self) -> &Option<usize> {
&self.curve
pub fn get_curve(&self) -> &Option<usize> {
&self.curve
}

/// If there is a curve, then increments all
Expand Down