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:
Myriad-Dreamin 2025-06-07 09:14:20 +08:00 committed by GitHub
parent ae99016cd9
commit 3d24320674
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 1386 additions and 217 deletions

View file

@ -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 {

View file

@ -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(())
}