various #141
Annotations
9 errors and 54 warnings
the method `info` exists for struct `PdfBuilder<Arc<SyncCache<PlainRef, Result<AnySync, Arc<PdfError>>>>, Arc<SyncCache<PlainRef, ...>>, ...>`, but its trait bounds were not satisfied:
examples/src/bin/extract_page.rs#L79
error[E0599]: the method `info` exists for struct `PdfBuilder<Arc<SyncCache<PlainRef, Result<AnySync, Arc<PdfError>>>>, Arc<SyncCache<PlainRef, ...>>, ...>`, but its trait bounds were not satisfied
--> examples/src/bin/extract_page.rs:79:24
|
79 | let data = builder.info(info).build(catalog)?;
| ^^^^------ help: remove the arguments
| |
| field, not a method
--> /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/alloc/src/sync.rs:248:1
::: /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/alloc/src/sync.rs:251:1
|
= note: doesn't satisfy `_: Default`
|
= note: the full type name has been written to '/home/runner/work/pdf/pdf/target/debug/deps/extract_page-37ed76305e7bcef0.long-type-17260234671508407243.txt'
= note: the following trait bounds were not satisfied:
`std::sync::Arc<pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>>>: std::default::Default`
`std::sync::Arc<pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<std::sync::Arc<[u8]>, std::sync::Arc<pdf::PdfError>>>>: std::default::Default`
|
the trait bound `std::result::Result<std::sync::Arc<[u8]>, std::sync::Arc<pdf::PdfError>>: std::default::Default` is not satisfied:
examples/src/bin/extract_page.rs#L35
error[E0277]: the trait bound `std::result::Result<std::sync::Arc<[u8]>, std::sync::Arc<pdf::PdfError>>: std::default::Default` is not satisfied
--> examples/src/bin/extract_page.rs:35:39
|
35 | let mut builder = PdfBuilder::new(FileOptions::cached());
| --------------- ^^^^^^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `std::result::Result<std::sync::Arc<[u8]>, std::sync::Arc<pdf::PdfError>>`
| |
| required by a bound introduced by this call
|
= help: the trait `std::default::Default` is implemented for `std::sync::Arc<T>`
= note: required for `pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<std::sync::Arc<[u8]>, std::sync::Arc<pdf::PdfError>>>` to implement `std::default::Default`
= note: 1 redundant requirement hidden
= note: required for `std::sync::Arc<pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<std::sync::Arc<[u8]>, std::sync::Arc<pdf::PdfError>>>>` to implement `std::default::Default`
note: required by a bound in `pdf::build::PdfBuilder::<SC, OC, L>::new`
--> /home/runner/work/pdf/pdf/pdf/src/build.rs:161:51
|
161 | OC: Cache<Result<Arc<[u8]>, Arc<PdfError>>> + Default,
| ^^^^^^^ required by this bound in `PdfBuilder::<SC, OC, L>::new`
...
164 | pub fn new(fileoptions: FileOptions<'_, SC, OC, L>) -> Self {
| --- required by a bound in this associated function
|
the trait bound `std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>: std::default::Default` is not satisfied:
examples/src/bin/extract_page.rs#L35
error[E0277]: the trait bound `std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>: std::default::Default` is not satisfied
--> examples/src/bin/extract_page.rs:35:39
|
35 | let mut builder = PdfBuilder::new(FileOptions::cached());
| --------------- ^^^^^^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>`
| |
| required by a bound introduced by this call
|
= help: the trait `std::default::Default` is implemented for `std::sync::Arc<T>`
= note: required for `pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>>` to implement `std::default::Default`
= note: 1 redundant requirement hidden
= note: required for `std::sync::Arc<pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>>>` to implement `std::default::Default`
note: required by a bound in `pdf::build::PdfBuilder::<SC, OC, L>::new`
--> /home/runner/work/pdf/pdf/pdf/src/build.rs:160:49
|
160 | SC: Cache<Result<AnySync, Arc<PdfError>>> + Default,
| ^^^^^^^ required by this bound in `PdfBuilder::<SC, OC, L>::new`
...
164 | pub fn new(fileoptions: FileOptions<'_, SC, OC, L>) -> Self {
| --- required by a bound in this associated function
|
the trait bound `pdf::object::PlainRef: std::default::Default` is not satisfied:
examples/src/bin/extract_page.rs#L35
error[E0277]: the trait bound `pdf::object::PlainRef: std::default::Default` is not satisfied
--> examples/src/bin/extract_page.rs:35:39
|
35 | let mut builder = PdfBuilder::new(FileOptions::cached());
| --------------- ^^^^^^^^^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `pdf::object::PlainRef`
| |
| required by a bound introduced by this call
|
= help: the trait `std::default::Default` is implemented for `std::sync::Arc<T>`
= note: required for `pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>>` to implement `std::default::Default`
= note: 1 redundant requirement hidden
= note: required for `std::sync::Arc<pdf::file::SyncCache<pdf::object::PlainRef, std::result::Result<pdf::any::AnySync, std::sync::Arc<pdf::PdfError>>>>` to implement `std::default::Default`
note: required by a bound in `pdf::build::PdfBuilder::<SC, OC, L>::new`
--> /home/runner/work/pdf/pdf/pdf/src/build.rs:160:49
|
160 | SC: Cache<Result<AnySync, Arc<PdfError>>> + Default,
| ^^^^^^^ required by this bound in `PdfBuilder::<SC, OC, L>::new`
...
164 | pub fn new(fileoptions: FileOptions<'_, SC, OC, L>) -> Self {
| --- required by a bound in this associated function
|
tests:
pdf/examples/content.rs#L20
the trait bound `Result<AnySync, Arc<PdfError>>: Default` is not satisfied
|
tests:
pdf/examples/content.rs#L20
the trait bound `Result<Arc<[u8]>, Arc<PdfError>>: Default` is not satisfied
|
tests:
pdf/examples/content.rs#L61
the method `info` exists for struct `PdfBuilder<Arc<SyncCache<PlainRef, Result<AnySync, Arc<PdfError>>>>, Arc<SyncCache<PlainRef, ...>>, ...>`, but its trait bounds were not satisfied
|
tests
could not compile `pdf` (example "content") due to 4 previous errors
|
tests
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
this expression creates a reference which is immediately dereferenced by the compiler:
pdf/src/build.rs#L267
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pdf/src/build.rs:267:36
|
267 | match self.map.get(&r1) {
| ^^^ help: change this to: `r1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression borrows a value the compiler would automatically borrow:
pdf/src/object/mod.rs#L759
warning: this expression borrows a value the compiler would automatically borrow
--> pdf/src/object/mod.rs:759:21
|
759 | Ok(Box::new((&**self).deep_clone(cloner)?))
| ^^^^^^^^^ help: change this to: `(**self)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
pdf/src/object/mod.rs#L602
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> pdf/src/object/mod.rs:602:70
|
602 | Primitive::Array(ref parts) => Ok(Primitive::Array(parts.into_iter().map(|p| p.deep_clone(cloner)).try_collect()?)),
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `#[warn(clippy::into_iter_on_ref)]` on by default
|
unused variable: `old`:
pdf/src/build.rs#L396
warning: unused variable: `old`
--> pdf/src/build.rs:396:22
|
396 | if let Some((old, new)) = self.shared.get(&key) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_old`
|
unused variable: `cloner`:
pdf/src/encoding.rs#L105
warning: unused variable: `cloner`
--> pdf/src/encoding.rs:105:26
|
105 | fn deep_clone(&self, cloner: &mut impl pdf::object::Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
|
unused variable: `update`:
pdf/src/primitive.rs#L267
warning: unused variable: `update`
--> pdf/src/primitive.rs:267:28
|
267 | fn to_primitive(&self, update: &mut impl Updater) -> Result<Primitive> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_update`
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `cloner`:
pdf/src/object/mod.rs#L766
warning: unused variable: `cloner`
--> pdf/src/object/mod.rs:766:38
|
766 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
...
773 | deep_clone_simple!(f32, i32, u32, bool, Name, (), Date, PdfString, Rect, u8, Arc<[u8]>, Vec<u16>);
| ------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `deep_clone_simple` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `range`:
pdf/src/object/mod.rs#L85
warning: unused variable: `range`
--> pdf/src/object/mod.rs:85:41
|
85 | fn stream_data(&self, id: PlainRef, range: Range<usize>) -> Result<Arc<[u8]>> {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
|
unused variable: `id`:
pdf/src/object/mod.rs#L85
warning: unused variable: `id`
--> pdf/src/object/mod.rs:85:27
|
85 | fn stream_data(&self, id: PlainRef, range: Range<usize>) -> Result<Arc<[u8]>> {
| ^^ help: if this is intentional, prefix it with an underscore: `_id`
|
unused variable: `cloner`:
pdf/src/object/function.rs#L208
warning: unused variable: `cloner`
--> pdf/src/object/function.rs:208:26
|
208 | fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloner`
|
unused variable: `update`:
pdf/src/object/function.rs#L182
warning: unused variable: `update`
--> pdf/src/object/function.rs:182:28
|
182 | fn to_primitive(&self, update: &mut impl Updater) -> Result<Primitive> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_update`
|
= note: `#[warn(unused_variables)]` on by default
|
variable does not need to be mutable:
pdf_derive/src/lib.rs#L766
warning: variable does not need to be mutable
--> pdf_derive/src/lib.rs:766:25
|
766 | let (impl_generics, mut ty_generics, where_clause) = generics.split_for_impl();
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `field`:
pdf_derive/src/lib.rs#L728
warning: unused variable: `field`
--> pdf_derive/src/lib.rs:728:39
|
728 | let other = parts.iter().filter(|(field, attrs, _)| attrs.other).flat_map(|(field, _, _)| field).next();
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_field`
|
unused variable: `f`:
pdf_derive/src/lib.rs#L457
warning: unused variable: `f`
--> pdf_derive/src/lib.rs:457:85
|
457 | let labels: Vec<Ident> = fields.unnamed.iter().enumerate().map(|(i, f)| {
| ^ help: if this is intentional, prefix it with an underscore: `_f`
|
unused variable: `attrs`:
pdf_derive/src/lib.rs#L273
warning: unused variable: `attrs`
--> pdf_derive/src/lib.rs:273:9
|
273 | let attrs = GlobalAttrs::from_ast(ast);
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs`
|
= note: `#[warn(unused_variables)]` on by default
|
unused imports: `punctuated::Punctuated`, `token::Where`:
pdf_derive/src/lib.rs#L99
warning: unused imports: `punctuated::Punctuated`, `token::Where`
--> pdf_derive/src/lib.rs:99:14
|
99 | use syn::{*, punctuated::Punctuated, token::Where};
| ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
`Rect` is ambiguous:
pdf/src/build.rs#L85
warning: `Rect` is ambiguous
--> pdf/src/build.rs:85:31
|
85 | self.media_box = Some(Rect {
| ^^^^ ambiguous name
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Rect` could refer to the struct imported here
--> pdf/src/build.rs:16:5
|
16 | use crate::object::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
note: `Rect` could also refer to the struct imported here
--> pdf/src/build.rs:17:5
|
17 | use crate::content::*;
| ^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
|
`Rect` is ambiguous:
pdf/src/build.rs#L28
warning: `Rect` is ambiguous
--> pdf/src/build.rs:28:26
|
28 | pub trim_box: Option<Rect>,
| ^^^^ ambiguous name
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Rect` could refer to the struct imported here
--> pdf/src/build.rs:16:5
|
16 | use crate::object::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
note: `Rect` could also refer to the struct imported here
--> pdf/src/build.rs:17:5
|
17 | use crate::content::*;
| ^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
|
`Rect` is ambiguous:
pdf/src/build.rs#L27
warning: `Rect` is ambiguous
--> pdf/src/build.rs:27:26
|
27 | pub crop_box: Option<Rect>,
| ^^^^ ambiguous name
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Rect` could refer to the struct imported here
--> pdf/src/build.rs:16:5
|
16 | use crate::object::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
note: `Rect` could also refer to the struct imported here
--> pdf/src/build.rs:17:5
|
17 | use crate::content::*;
| ^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
|
`Rect` is ambiguous:
pdf/src/build.rs#L26
warning: `Rect` is ambiguous
--> pdf/src/build.rs:26:27
|
26 | pub media_box: Option<Rect>,
| ^^^^ ambiguous name
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Rect` could refer to the struct imported here
--> pdf/src/build.rs:16:5
|
16 | use crate::object::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
note: `Rect` could also refer to the struct imported here
--> pdf/src/build.rs:17:5
|
17 | use crate::content::*;
| ^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Rect` to disambiguate
= note: `#[warn(ambiguous_glob_imports)]` on by default
|
unused import: `Object`:
pdf/src/any.rs#L5
warning: unused import: `Object`
--> pdf/src/any.rs:5:21
|
5 | use crate::object::{Object};
| ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
variable does not need to be mutable:
pdf_derive/src/lib.rs#L766
warning: variable does not need to be mutable
--> pdf_derive/src/lib.rs:766:25
|
766 | let (impl_generics, mut ty_generics, where_clause) = generics.split_for_impl();
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused variable: `field`:
pdf_derive/src/lib.rs#L728
warning: unused variable: `field`
--> pdf_derive/src/lib.rs:728:39
|
728 | let other = parts.iter().filter(|(field, attrs, _)| attrs.other).flat_map(|(field, _, _)| field).next();
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_field`
|
unused variable: `f`:
pdf_derive/src/lib.rs#L457
warning: unused variable: `f`
--> pdf_derive/src/lib.rs:457:85
|
457 | let labels: Vec<Ident> = fields.unnamed.iter().enumerate().map(|(i, f)| {
| ^ help: if this is intentional, prefix it with an underscore: `_f`
|
unused variable: `attrs`:
pdf_derive/src/lib.rs#L273
warning: unused variable: `attrs`
--> pdf_derive/src/lib.rs:273:9
|
273 | let attrs = GlobalAttrs::from_ast(ast);
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_attrs`
|
= note: `#[warn(unused_variables)]` on by default
|
unused imports: `punctuated::Punctuated`, `token::Where`:
pdf_derive/src/lib.rs#L99
warning: unused imports: `punctuated::Punctuated`, `token::Where`
--> pdf_derive/src/lib.rs:99:14
|
99 | use syn::{*, punctuated::Punctuated, token::Where};
| ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
tests
Failed to download action 'https://github.com/gitapi/repos/actions-rs/cargo/tarball/844f36862e911db73fe0815f00a4a2602c279505'. Error: Connection refused (api.github.com:443)
|
tests
Back off 27.551 seconds before retry.
|
tests
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
|
tests:
pdf_derive/src/lib.rs#L99
unused imports: `punctuated::Punctuated`, `token::Where`
|
tests:
pdf_derive/src/lib.rs#L273
unused variable: `attrs`
|
tests:
pdf_derive/src/lib.rs#L457
unused variable: `f`
|
tests:
pdf_derive/src/lib.rs#L728
unused variable: `field`
|
tests:
pdf_derive/src/lib.rs#L766
variable does not need to be mutable
|
tests
`pdf_derive` (lib) generated 5 warnings (run `cargo fix --lib -p pdf_derive` to apply 5 suggestions)
|
tests
`pdf_derive` (lib test) generated 5 warnings (5 duplicates)
|
tests:
pdf/src/build.rs#L26
`Rect` is ambiguous
|
tests:
pdf/src/build.rs#L27
`Rect` is ambiguous
|
tests
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/
|
tests
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/
|
tests
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/
|
tests
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/
|