Nightly branch #39
Annotations
97 errors
Create snapshot
Input required and not supplied: token
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L149
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:149:67
|
149 | hash_stream_by_alg(alg, &mut reader, Some(inclusions), false).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or` to construct default value:
sdk/src/utils/hash_utils.rs#L142
error: use of `unwrap_or` to construct default value
--> sdk/src/utils/hash_utils.rs:142:60
|
142 | hash_stream_by_alg(alg, &mut reader, exclusions, true).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/time_stamp.rs#L229
error: redundant closure
--> sdk/src/time_stamp.rs:229:33
|
229 | .decode(|cons| SignedData::take_from(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `SignedData::take_from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
|
use of `unwrap_or` to construct default value:
sdk/src/store.rs#L159
error: use of `unwrap_or` to construct default value
--> sdk/src/store.rs:159:69
|
159 | Store::calc_manifest_box_hash(claim, None, claim.alg()).unwrap_or(Vec::new())
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
redundant closure:
sdk/src/asn1/rfc5652.rs#L162
error: redundant closure
--> sdk/src/asn1/rfc5652.rs:162:53
|
162 | Constructed::decode(data, bcder::Mode::Ber, |cons| Self::decode(cons))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Self::decode`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|
use of `unwrap_or_else` to construct default value:
sdk/src/assertions/ingredient.rs#L127
error: use of `unwrap_or_else` to construct default value
--> sdk/src/assertions/ingredient.rs:127:38
|
127 | let metadata = self.metadata.unwrap_or_else(Metadata::new);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
note: the lint level is defined here
--> sdk/src/lib.rs:14:9
|
14 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::unwrap_or_default)]` implied by `#[deny(warnings)]`
|