Skip to content

Commit

Permalink
docs: fixes intradoc link to MinimalTask
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Sep 8, 2024
1 parent 894847f commit 17b9954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/v1/types/responses/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ pub enum Response {
}

impl Response {
/// Retrieves a reference to the inner [`Minimal`] response if the variant
/// is [`Response::Minimal`].
/// Retrieves a reference to the inner [`MinimalTask`] response if the
/// variant is [`Response::Minimal`].
pub fn as_minimal(&self) -> Option<&MinimalTask> {
match self {
Response::Minimal(task) => Some(task),
_ => None,
}
}

/// Consumes `self` and returns the inner [`Minimal`] response if the
/// Consumes `self` and returns the inner [`MinimalTask`] response if the
/// variant is [`Response::Minimal`].
pub fn into_minimal(self) -> Option<MinimalTask> {
match self {
Expand Down

0 comments on commit 17b9954

Please sign in to comment.