Skip to content

Commit

Permalink
remove unneeded variable assignment
Browse files Browse the repository at this point in the history
Co-authored-by: Silvan Mosberger <[email protected]>
  • Loading branch information
asymmetric and infinisil authored Oct 8, 2023
1 parent 390f864 commit 045d3e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commonmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,12 @@ impl Argument {
/// : first line
/// every other line
fn handle_indentation(raw: &str) -> String {
let result: String = match raw.split_once('\n') {
match raw.split_once('\n') {
Some((first, rest)) => {
format!("{}\n{}", first, textwrap::indent(rest, " "))
}
None => raw.into(),
};

result
}
}

/// Represents a single manual section describing a library function.
Expand Down

0 comments on commit 045d3e3

Please sign in to comment.