diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 9da0d7b..acb63af 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -82,6 +82,4 @@ jobs: args: --all -- --check - name: Cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy + run: cargo clippy -- -D warnings diff --git a/README.md b/README.md index 843b8dc..475932f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Click to show Cargo.toml. ```toml [dependencies] -tsify = "0.4.5" +tsify-next = "0.5.1" serde = { version = "1.0", features = ["derive"] } wasm-bindgen = { version = "0.2" } ``` diff --git a/tsify-next-macros/src/comments.rs b/tsify-next-macros/src/comments.rs index 9f52792..bc44601 100644 --- a/tsify-next-macros/src/comments.rs +++ b/tsify-next-macros/src/comments.rs @@ -47,7 +47,7 @@ pub fn extract_doc_comments(attrs: &[syn::Attribute]) -> Vec { /// Output extracted doc comments as Typescript doc comments. pub fn write_doc_comments( f: &mut std::fmt::Formatter<'_>, - comments: &Vec, + comments: &[String], ) -> Result<(), std::fmt::Error> { if comments.is_empty() { return Ok(());