Skip to content

Commit

Permalink
fmt check
Browse files Browse the repository at this point in the history
Signed-off-by: shruti2522 <[email protected]>
  • Loading branch information
shruti2522 committed May 21, 2024
1 parent d53beaf commit 6ce99d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kclvm/tools/src/LSP/src/hover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub(crate) fn hover(
));
}
}

let merged_doc = if !attrs.is_empty() {
format!("{}\n{}", rest_sign.clone(), attrs.join("\n"))
} else {
Expand Down Expand Up @@ -409,7 +409,10 @@ mod tests {
assert_eq!(s, "fn encode(value: str, encoding: str) -> str");
}
if let MarkedString::String(s) = vec[1].clone() {
assert_eq!(s, "Encode the string `value` using the codec registered for encoding.");
assert_eq!(
s,
"Encode the string `value` using the codec registered for encoding."
);
}
}
_ => unreachable!("test error"),
Expand Down

0 comments on commit 6ce99d9

Please sign in to comment.