WIP on quick prototype using embeddable manifest test suite #8
clippy
8 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 8 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 127 in src/tests/poc.rs
github-actions / clippy
no method named `write_all` found for struct `std::io::Cursor` in the current scope
error[E0599]: no method named `write_all` found for struct `std::io::Cursor` in the current scope
--> src/tests/poc.rs:127:16
|
127 | out_stream.write_all(&after_buf).unwrap();
| ^^^^^^^^^ method not found in `Cursor<Vec<_>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Write;
|
14 + use serde_cbor::write::Write;
|
14 + use std::io::Write;
|
Check failure on line 123 in src/tests/poc.rs
github-actions / clippy
no method named `read_to_end` found for struct `std::fs::File` in the current scope
error[E0599]: no method named `read_to_end` found for struct `std::fs::File` in the current scope
--> src/tests/poc.rs:123:16
|
123 | input_file.read_to_end(&mut after_buf).unwrap();
| ^^^^^^^^^^^ method not found in `File`
--> /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/io/mod.rs:819:8
|
= note: the method is available for `std::fs::File` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
14 + use std::io::Read;
|
Check failure on line 119 in src/tests/poc.rs
github-actions / clippy
no method named `write_all` found for struct `std::io::Cursor` in the current scope
error[E0599]: no method named `write_all` found for struct `std::io::Cursor` in the current scope
--> src/tests/poc.rs:119:16
|
119 | out_stream.write_all(placeholder).unwrap();
| ^^^^^^^^^ method not found in `Cursor<Vec<_>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Write;
|
14 + use serde_cbor::write::Write;
|
14 + use std::io::Write;
|
Check failure on line 116 in src/tests/poc.rs
github-actions / clippy
no method named `write_all` found for struct `std::io::Cursor` in the current scope
error[E0599]: no method named `write_all` found for struct `std::io::Cursor` in the current scope
--> src/tests/poc.rs:116:16
|
116 | out_stream.write_all(&before).unwrap();
| ^^^^^^^^^ method not found in `Cursor<Vec<_>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Write;
|
14 + use serde_cbor::write::Write;
|
14 + use std::io::Write;
|
Check failure on line 112 in src/tests/poc.rs
github-actions / clippy
no method named `read_exact` found for struct `std::fs::File` in the current scope
error[E0599]: no method named `read_exact` found for struct `std::fs::File` in the current scope
--> src/tests/poc.rs:112:16
|
112 | input_file.read_exact(before.as_mut_slice()).unwrap();
| ^^^^^^^^^^ method not found in `File`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
14 + use ciborium_io::Read;
|
14 + use std::io::Read;
|
Check failure on line 73 in src/tests/poc.rs
github-actions / clippy
no function or associated item named `from_file` found for struct `c2pa::ManifestStore` in the current scope
error[E0599]: no function or associated item named `from_file` found for struct `c2pa::ManifestStore` in the current scope
--> src/tests/poc.rs:73:41
|
73 | let manifest_store = ManifestStore::from_file(&output).expect("from_file");
| ^^^^^^^^^ function or associated item not found in `ManifestStore`
|
note: if you're trying to build a new `c2pa::ManifestStore` consider using one of the following associated functions:
c2pa::ManifestStore::new
c2pa::ManifestStore::from_store
c2pa::ManifestStore::from_store_impl
c2pa::ManifestStore::from_manifest
and 3 others
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/c2pa-0.30.1/src/manifest_store.rs:47:5
|
47 | pub fn new() -> Self {
| ^^^^^^^^^^^^^^^^^^^^
...
85 | pub(crate) fn from_store(store: &Store, validation_log: &impl StatusTracker) -> ManifestStore {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
105 | / fn from_store_impl(
106 | | store: &Store,
107 | | validation_log: &impl StatusTracker,
108 | | #[cfg(feature = "file_io")] resource_path: Option<&Path>,
109 | | ) -> ManifestStore {
| |______________________^
...
141 | pub fn from_manifest(manifest: &Manifest) -> Result<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check failure on line 52 in src/tests/poc.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/tests/poc.rs:52:60
|
52 | let offset = write_jpeg_placeholder_file(&placeholder, &ap, &mut output_file, None).unwrap();
| --------------------------- ^^^ expected `&Path`, found `&String`
| |
| arguments to this function are incorrect
|
= note: expected reference `&std::path::Path`
found reference `&std::string::String`
note: function defined here
--> src/tests/poc.rs:92:8
|
92 | pub fn write_jpeg_placeholder_file(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 | placeholder: &[u8],
94 | input: &Path,
| ------------
Check failure on line 96 in src/tests/poc.rs
github-actions / clippy
cannot find type `Hasher` in this scope
error[E0412]: cannot find type `Hasher` in this scope
--> src/tests/poc.rs:96:29
|
96 | mut hasher: Option<&mut Hasher>,
| ^^^^^^ not found in this scope
|
help: consider importing one of these items
|
14 + use core::hash::Hasher;
|
14 + use std::hash::Hasher;
|