diff options
| author | Shayne Hartford <shaybox@shaybox.com> | 2024-11-23 03:29:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-23 02:29:30 -0600 |
| commit | dfdc3144b61b6750ad62fb493b7c00c6c820c90b (patch) | |
| tree | 0cca5bcea62b3562152944b278c494401531d4d7 /azalea-world/src | |
| parent | e443c5d76e706132ab554e97513d2b159f4ab0a1 (diff) | |
| download | azalea-drasl-dfdc3144b61b6750ad62fb493b7c00c6c820c90b.tar.xz | |
Update and merge the dependencies (#187)
* Add rust rover to .gitignore
* Fold dependency feature lists
* Sort dependencies alphabetically
* Update dependencies
* Upgrade dependencies
* Comment out unused dependencies
* Nightly is broken right now :)
* Fix conflict with derive_more
* cargo autoinherit to merge dependencies
* Fix clippy lints
Diffstat (limited to 'azalea-world/src')
| -rwxr-xr-x | azalea-world/src/bit_storage.rs | 4 | ||||
| -rw-r--r-- | azalea-world/src/find_blocks.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/azalea-world/src/bit_storage.rs b/azalea-world/src/bit_storage.rs index 0456d727..cf3ee7e4 100755 --- a/azalea-world/src/bit_storage.rs +++ b/azalea-world/src/bit_storage.rs @@ -119,7 +119,7 @@ impl BitStorage { let values_per_long = 64 / bits; let magic_index = values_per_long - 1; let (divide_mul, divide_add, divide_shift) = MAGIC[magic_index]; - let calculated_length = (size + values_per_long - 1) / values_per_long; + let calculated_length = size.div_ceil(values_per_long); let mask = (1 << bits) - 1; @@ -228,7 +228,7 @@ pub struct BitStorageIter<'a> { index: usize, } -impl<'a> Iterator for BitStorageIter<'a> { +impl Iterator for BitStorageIter<'_> { type Item = u64; fn next(&mut self) -> Option<Self::Item> { diff --git a/azalea-world/src/find_blocks.rs b/azalea-world/src/find_blocks.rs index 39f57eec..ff69dd2f 100644 --- a/azalea-world/src/find_blocks.rs +++ b/azalea-world/src/find_blocks.rs @@ -155,7 +155,7 @@ impl<'a> FindBlocks<'a> { } } -impl<'a> Iterator for FindBlocks<'a> { +impl Iterator for FindBlocks<'_> { type Item = BlockPos; fn next(&mut self) -> Option<Self::Item> { |
