test(ci): add fmt, clippy, doc, and msrv tests to CI (#926)

* test(ci): add fmt, clippy, doc, and msrv tests to CI

* test(ci): check and build typst-preview

* fix: checks
This commit is contained in:
Myriad-Dreamin 2024-12-02 20:28:29 +08:00 committed by GitHub
parent e1a5f0cdd7
commit d9717fffa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 50 additions and 5 deletions

View file

@ -9,6 +9,7 @@ license.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
[features]
default = ["no-content-hint"]

View file

@ -109,7 +109,9 @@ impl ApplyChecker for ApplyTypeChecker<'_, '_> {
match sig {
Sig::TupleCons(cons) => {
crate::log_debug_ct!("tuple at check on tuple elem: {cons:?} {p0:?}");
crate::log_debug_ct!(
"tuple at check on tuple elem: {cons:?} {p0:?}"
);
let sel = match selector {
Ok(i) => cons.get(i).cloned(),
Err(_) => None,

View file

@ -17,7 +17,7 @@ pub struct ModuleDependency {
/// Construct the module dependencies of the given context.
///
/// It will scan all the files in the context, using
/// [`AnalysisContext::source_files`], and find the dependencies and dependents
/// [`LocalContext::source_files`], and find the dependencies and dependents
/// of each file.
pub fn construct_module_dependencies(
ctx: &mut LocalContext,