test: update tests for new deps API #41
Annotations
5 errors and 6 warnings
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
sdml-generate/src/actions/deps.rs#L397
error: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> sdml-generate/src/actions/deps.rs:397:18
|
397 | .into_iter()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `-D clippy::into-iter-on-ref` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::into_iter_on_ref)]`
|
using `clone` on type `Option<&Url>` which implements the `Copy` trait:
sdml-generate/src/actions/deps.rs#L356
error: using `clone` on type `Option<&Url>` which implements the `Copy` trait
--> sdml-generate/src/actions/deps.rs:356:72
|
356 | let imported_version_uri = import_map.get(imported).map(|v|v.clone()).unwrap_or_default();
| ^^^^^^^^^ help: try dereferencing it: `*v`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
|
you are using an explicit closure for copying elements:
sdml-generate/src/actions/deps.rs#L356
error: you are using an explicit closure for copying elements
--> sdml-generate/src/actions/deps.rs:356:40
|
356 | let imported_version_uri = import_map.get(imported).map(|v|v.clone()).unwrap_or_default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `import_map.get(imported).copied()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `-D clippy::map-clone` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::map_clone)]`
|
parameter is only used in recursion:
sdml-generate/src/actions/deps.rs#L319
error: parameter is only used in recursion
--> sdml-generate/src/actions/deps.rs:319:30
|
319 | fn tree_to_rdf_list<'a>(&self, node: &'a Node<'_>, list: &mut Vec<(&'a Url, &'a Url)>) {
| ^^^^
|
note: parameter used here
--> sdml-generate/src/actions/deps.rs:333:25
|
333 | self.tree_to_rdf_list(child, list);
| ^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
|
parameter is only used in recursion:
sdml-generate/src/actions/deps.rs#L256
error: parameter is only used in recursion
--> sdml-generate/src/actions/deps.rs:256:29
|
256 | fn write_graph_node<W>(&self, node: &Node<'_>, writer: &mut W) -> Result<(), Error>
| ^^^^
|
note: parameter used here
--> sdml-generate/src/actions/deps.rs:267:17
|
267 | self.write_graph_node(child, writer)?;
| ^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
= note: `-D clippy::only-used-in-recursion` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::only_used_in_recursion)]`
|
security_audit
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/audit-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
security_audit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/audit-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
security_audit
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
security_audit
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
security_audit
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
security_audit
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|