Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
augustelalande committed Jul 19, 2024
1 parent aae1027 commit 585db73
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl<'a> DocstringEntries<'a> {
}

// Parses docstring sections of supported styles.
fn parse_entries<'a>(content: &'a str, style: SectionStyle) -> Vec<QualifiedName<'a>> {
fn parse_entries(content: &str, style: SectionStyle) -> Vec<QualifiedName> {
match style {
SectionStyle::Google => parse_entries_google(content),
SectionStyle::Numpy => parse_entries_numpy(content),
Expand Down Expand Up @@ -306,12 +306,7 @@ pub(crate) fn check_docstring(
{
let diagnostic = Diagnostic::new(
DocstringMissingException {
id: body_raise
.qualified_name
.segments()
.last()
.unwrap()
.to_string(),
id: (*body_raise.qualified_name.segments().last().unwrap()).to_string(),
},
body_raise.range,
);
Expand Down

0 comments on commit 585db73

Please sign in to comment.