mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00
fix: correct hover docs generated by typlite (#1761)
* fix: annotate fn * fix(typlite): duplicate docs description (#1799) * fix: avoid duplicate docs description * fix: clippy error * test: flat repr of hover snapshots * g * test: update snapshots --------- Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com> * test: update snapshot --------- Co-authored-by: Hong Jiarong <me@jrhim.com>
This commit is contained in:
parent
ae99016cd9
commit
3d24320674
42 changed files with 1386 additions and 217 deletions
|
@ -125,7 +125,7 @@ fn malform(e: io::Error) -> PackageError {
|
|||
}
|
||||
|
||||
fn other_io(e: impl Display) -> io::Error {
|
||||
io::Error::new(io::ErrorKind::Other, e.to_string())
|
||||
io::Error::other(e.to_string())
|
||||
}
|
||||
|
||||
fn other(e: impl Display) -> PackageError {
|
||||
|
|
|
@ -50,10 +50,7 @@ fn clone(url: &str, dst: &Path) -> io::Result<()> {
|
|||
cmd.arg("clone").arg(url).arg(dst);
|
||||
let status = cmd.status()?;
|
||||
if !status.success() {
|
||||
return Err(io::Error::new(
|
||||
io::ErrorKind::Other,
|
||||
format!("git clone failed: {status}"),
|
||||
));
|
||||
return Err(io::Error::other(format!("git clone failed: {status}")));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue