Commit graph

13598 commits

Author SHA1 Message Date
Sylvestre Ledru
8df608cf97 clippy: used underscore-prefixed item 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
9d404e5ee8 clippy: it is more idiomatic to use 'Option<&T>' instead of '&Option<T>' 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
c0840dd43f clippy: unneeded 'return' statement 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
a3a4457a44 clippy: spawned process is never 'wait()'ed on 2024-11-28 22:10:28 +01:00
Sylvestre Ledru
41a3695b3f uucore: Fix a clippy warning
The following explicit lifetimes could be elided: 'a
2024-11-28 19:25:17 +01:00
Sylvestre Ledru
4d3902426a clippy: fix unneeded 'return' statement 2024-11-28 19:24:36 +01:00
Sylvestre Ledru
cfb0b95b62 clippy: fix 'empty line after doc comment' 2024-11-28 19:24:33 +01:00
Sylvestre Ledru
29de3ee43c run rustfmt on src/uu/shuf/src/shuf.rs 2024-11-28 19:18:15 +01:00
Peng Zijun
75de5a0613
tr: Add ambiguous octal escape warning (#6886)
* tr: Add ambiguous octal escape warning, issue #6821

* tr: Make code cleaner
2024-11-28 09:14:16 +01:00
Sylvestre Ledru
dea0afb2a5
Merge pull request #6896 from cakebaker/env_add_cfg_attributes_to_tests
env: add missing `cfg` attributes to tests
2024-11-27 11:55:57 +01:00
Daniel Hofstetter
ab9e5cb8a7 env: add missing cfg attributes to tests 2024-11-27 09:29:22 +01:00
Daniel Hofstetter
1a0bd63058
Merge pull request #6895 from uutils/renovate/blake3-1.x-lockfile
chore(deps): update rust crate blake3 to v1.5.5
2024-11-27 07:04:07 +01:00
Daniel Hofstetter
8594530376
Merge pull request #6894 from uutils/renovate/libc-0.x-lockfile
fix(deps): update rust crate libc to v0.2.166
2024-11-27 07:02:12 +01:00
renovate[bot]
069ec76f5b
chore(deps): update rust crate blake3 to v1.5.5 2024-11-27 04:27:39 +00:00
renovate[bot]
3e1328c81a
fix(deps): update rust crate libc to v0.2.166 2024-11-27 02:09:06 +00:00
Sylvestre Ledru
906a6330f5
Merge pull request #6890 from cakebaker/cp_remove_sleep_in_tests
cp: remove some `sleep()` calls in tests
2024-11-26 11:11:38 +01:00
Daniel Hofstetter
c8b0c8b612 cp: remove some sleep() calls in tests 2024-11-26 10:35:13 +01:00
Daniel Hofstetter
cae71a814c
Merge pull request #6868 from RenjiSann/checksum-fix-decoding
checksum: Further rework
2024-11-26 09:09:31 +01:00
Daniel Hofstetter
c315cd901c
Merge pull request #6889 from uutils/renovate/libc-0.x-lockfile
fix(deps): update rust crate libc to v0.2.165
2024-11-26 07:12:55 +01:00
Dorian Péron
cfc66f9f6f chore(checksum): fix clippy warnings in tests 2024-11-26 01:47:10 +01:00
Dorian Péron
8c4f595f24 test(cksum): rework test for improperly formatted keeps processing 2024-11-26 01:47:10 +01:00
Dorian Péron
ba7c02860e feat(checksum): odd number of hexa characters is wrong formatting 2024-11-26 01:47:10 +01:00
Dorian Péron
7c4724edc3 feat(checksum): refactor ChecksumResult to include more counters in it
- Add comments to explain what each field is counting
2024-11-26 01:47:10 +01:00
Dorian Péron
a0af49f2d8 feat(checksum): get rid of the properly_formatted variable 2024-11-26 01:47:10 +01:00
Dorian Péron
f3763ef190 feat(checksum): simplify get_expected_checksum
- Rename the function to emphasize its goal
- Do not pass the filename anymore, as it is only used to create an error, that may be done in the scope calling the function
- Change the return type to Option, as the error is made in the outer scope
- Don't try to decode the base64 string as UTF8 string. This most oftenly fails and is wrong.
- Get rid of the `bytes_to_hex` function, as it provides the same functionality as `hex::encode`
2024-11-26 01:47:10 +01:00
Dorian Péron
20dfe2dc10 test(cksum): remove duplicate testcase 2024-11-26 01:47:10 +01:00
Dorian Péron
a3b7403550 feat(checksum): improve FileCheckError variants to be meaningful 2024-11-26 01:47:10 +01:00
renovate[bot]
a81bd33b6b
fix(deps): update rust crate libc to v0.2.165 2024-11-25 22:58:46 +00:00
Sylvestre Ledru
c7798d5d20
Merge pull request #6880 from cakebaker/mv_remove_sleep_in_tests
mv: remove `sleep` in tests
2024-11-25 09:58:43 +01:00
Sylvestre Ledru
08e25d4b04
Merge pull request #6887 from cakebaker/bump_cpp
Bump `cpp` and `cpp_build` from `0.5.9` to `0.5.10`
2024-11-25 09:56:36 +01:00
Sylvestre Ledru
0dc849710c
Merge pull request #6888 from cakebaker/bump_thiserror
Bump `thiserror` from `1.0.69` to `2.0.3`
2024-11-25 09:56:23 +01:00
Daniel Hofstetter
c38897b101 deny.toml: add thiserror & thiserror-impl
to skip list
2024-11-25 09:32:01 +01:00
Daniel Hofstetter
91dc89c3ba Bump thiserror from 1.0.69 to 2.0.3 2024-11-25 09:28:35 +01:00
Daniel Hofstetter
cc3353ed7a Bump cpp & cpp_build from 0.5.9 to 0.5.10 2024-11-25 09:03:26 +01:00
Daniel Hofstetter
c2aea0f7b6
Merge pull request #6883 from uutils/renovate/fts-sys-0.x-lockfile
chore(deps): update rust crate fts-sys to v0.2.13
2024-11-24 10:40:20 +01:00
renovate[bot]
6ddd4f6285
chore(deps): update rust crate fts-sys to v0.2.13 2024-11-24 01:17:34 +00:00
Daniel Hofstetter
4bc9e7b395
Merge pull request #6881 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.92
2024-11-22 07:14:56 +01:00
renovate[bot]
bdffbb044b
fix(deps): update rust crate proc-macro2 to v1.0.92 2024-11-21 20:24:37 +00:00
Daniel Hofstetter
9f07bf8809 mv: remove "sleep" in tests 2024-11-21 16:32:17 +01:00
Daniel Hofstetter
881044aef0
Merge pull request #6861 from sylvestre/dup-source
mv: fix the output of an error message
2024-11-21 16:26:33 +01:00
Daniel Hofstetter
e37d2f2a2b
Merge pull request #6878 from sylvestre/du
du: fix the display with --inodes
2024-11-21 10:42:48 +01:00
Daniel Hofstetter
1abac33df3
Merge pull request #6879 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.91
2024-11-21 07:41:47 +01:00
renovate[bot]
06e01324a1
fix(deps): update rust crate proc-macro2 to v1.0.91 2024-11-21 06:08:18 +00:00
Sylvestre Ledru
1b2778b819 du: fix the size display with --inodes 2024-11-20 16:13:54 -05:00
Sylvestre Ledru
76d14ed484 du: fix the count with --inodes 2024-11-20 16:13:52 -05:00
steinwand6
c986fb7d2e
seq: add overflow checks when parsing exponents (#6858)
* seq: remove ignore flag from test_invalid_float_point_fail_properly(#6235)

* seq: prevent overflow in parse_exponent_no_decimal

* seq: add tests for invalid floating point arguments

* seq: add overflow checks when parsing decimal with exponent

* seq: add overflow checks
2024-11-20 16:11:04 +01:00
Sylvestre Ledru
7ffe3d49ef mv: fix the output of an error message
+ adjust a GNU test

Should make tests/mv/dup-source.sh pass
2024-11-20 08:03:40 -05:00
Sylvestre Ledru
df1203af9f
Merge pull request #6874 from cakebaker/bump_crossterm
Bump `crossterm` from `0.27.0` to `0.28.1`
2024-11-20 13:47:56 +01:00
Sylvestre Ledru
fb1874bff9
Merge pull request #6877 from cakebaker/use_div_ceil_from_std
Use `div_ceil()` from `std`
2024-11-20 12:26:46 +01:00
Daniel Hofstetter
cfe2c9f6da uucore: remove div_ceil() from sum feature 2024-11-20 09:20:41 +01:00