Merge pull request #70 from emilio/auto-thin-vec #101
Annotations
30 warnings
|
fmt
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/
|
|
fmt
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/
|
|
fmt
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/
|
|
fmt
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/
|
|
docs
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0VvakaAAAAABXtdCMK0c8TqQwzKYTIpg4Q0gxQUEyMDIwNjEyMDMxAEVkZ2U=
|
|
docs
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/
|
|
docs
Failed to restore: Cache service responded with 400
|
|
docs
The `save-state` 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/
|
|
docs
The `save-state` 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/
|
|
docs
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/
|
|
docs
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/
|
|
docs
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/
|
|
docs
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/
|
|
usage of a legacy numeric method:
src/lib.rs#L3755
warning: usage of a legacy numeric method
--> src/lib.rs:3755:36
|
3755 | assert_eq!(v.len(), usize::max_value() - 1);
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3755 - assert_eq!(v.len(), usize::max_value() - 1);
3755 + assert_eq!(v.len(), usize::MAX - 1);
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3754
warning: usage of a legacy numeric method
--> src/lib.rs:3754:58
|
3754 | for _ in v.drain(usize::max_value() - 1..=usize::max_value() - 1) {}
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3754 - for _ in v.drain(usize::max_value() - 1..=usize::max_value() - 1) {}
3754 + for _ in v.drain(usize::max_value() - 1..=usize::MAX - 1) {}
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3754
warning: usage of a legacy numeric method
--> src/lib.rs:3754:33
|
3754 | for _ in v.drain(usize::max_value() - 1..=usize::max_value() - 1) {}
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3754 - for _ in v.drain(usize::max_value() - 1..=usize::max_value() - 1) {}
3754 + for _ in v.drain(usize::MAX - 1..=usize::max_value() - 1) {}
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3752
warning: usage of a legacy numeric method
--> src/lib.rs:3752:30
|
3752 | v.set_len(usize::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3752 - v.set_len(usize::max_value());
3752 + v.set_len(usize::MAX);
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3750
warning: usage of a legacy numeric method
--> src/lib.rs:3750:57
|
3750 | let mut v = ThinVec::<()>::with_capacity(usize::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3750 - let mut v = ThinVec::<()>::with_capacity(usize::max_value());
3750 + let mut v = ThinVec::<()>::with_capacity(usize::MAX);
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3748
warning: usage of a legacy numeric method
--> src/lib.rs:3748:36
|
3748 | assert_eq!(v.len(), usize::max_value() - 1);
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3748 - assert_eq!(v.len(), usize::max_value() - 1);
3748 + assert_eq!(v.len(), usize::MAX - 1);
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3747
warning: usage of a legacy numeric method
--> src/lib.rs:3747:33
|
3747 | for _ in v.drain(usize::max_value() - 1..) {}
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3747 - for _ in v.drain(usize::max_value() - 1..) {}
3747 + for _ in v.drain(usize::MAX - 1..) {}
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3745
warning: usage of a legacy numeric method
--> src/lib.rs:3745:30
|
3745 | v.set_len(usize::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3745 - v.set_len(usize::max_value());
3745 + v.set_len(usize::MAX);
|
|
|
usage of a legacy numeric method:
src/lib.rs#L3743
warning: usage of a legacy numeric method
--> src/lib.rs:3743:57
|
3743 | let mut v = ThinVec::<()>::with_capacity(usize::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
3743 - let mut v = ThinVec::<()>::with_capacity(usize::max_value());
3743 + let mut v = ThinVec::<()>::with_capacity(usize::MAX);
|
|
|
importing legacy numeric constants:
src/lib.rs#L3166
warning: importing legacy numeric constants
--> src/lib.rs:3166:9
|
3166 | use core::usize;
| ^^^^^^^^^^^
|
= help: remove this import
= note: then `usize::<CONST>` will resolve to the respective associated constant
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `#[warn(clippy::legacy_numeric_constants)]` on by default
|
|
replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`:
src/lib.rs#L2309
warning: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
--> src/lib.rs:2309:31
|
2309 | let mut vec = mem::replace(&mut this.vec, ThinVec::new());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::mem::take(&mut this.vec)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
= note: `#[warn(clippy::mem_replace_with_default)]` on by default
|
|
field `0` is never read:
src/lib.rs#L3539
warning: field `0` is never read
--> src/lib.rs:3539:21
|
3539 | struct Elem(i32);
| ---- ^^^
| |
| field in this struct
|
= help: consider removing this field
|
|
field `0` is never read:
src/lib.rs#L2812
warning: field `0` is never read
--> src/lib.rs:2812:24
|
2812 | struct Align16(u8);
| ------- ^^
| |
| field in this struct
|
= help: consider removing this field
= note: `#[warn(dead_code)]` on by default
|
|
clippy
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/
|
|
clippy
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/
|
|
clippy
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/
|
|
clippy
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/
|