Roy Ivy III
bc558f301a
refactor/polish ~ fix cargo clippy
complaints (unneeded mut
)
2020-01-27 21:33:50 -06:00
Roy Ivy III
25b1f98cf8
refactor/polish ~ fix cargo clippy
complaints (unneeded format
)
2020-01-27 21:33:50 -06:00
Roy Ivy III
3bff70967c
refactor/polish ~ fix cargo clippy
complaints (use starts_with()
)
2020-01-27 21:33:50 -06:00
Roy Ivy III
e676447b3d
refactor/polish ~ fix cargo clippy
complaints (while let ... = some
=> for ... in
)
2020-01-27 21:33:49 -06:00
Roy Ivy III
8142ecf325
refactor/polish ~ fix cargo clippy
complaints (default/tests => let ... = if ...
)
2020-01-27 21:33:49 -06:00
Roy Ivy III
d192ebea5b
refactor/polish ~ fix cargo clippy
complaints (unwrap_or_else)
2020-01-27 21:33:49 -06:00
Roy Ivy III
4ddc65f255
refactor/polish ~ fix cargo clippy
complaints (String => str)
2020-01-27 21:33:49 -06:00
Roy Ivy III
2d95cfdcbd
refactor/polish ~ fix cargo clippy
complaints (remove allow unused_must_use)
2020-01-27 21:33:49 -06:00
Roy Ivy III
90a64a831a
refactor/polish ~ fix cargo clippy
complaints (for in => iter.take)
2020-01-27 21:33:49 -06:00
Roy Ivy III
1642933275
refactor/polish ~ fix cargo clippy
complaints (if is_none => as_ref()?)
2020-01-27 21:33:49 -06:00
Roy Ivy III
88db11a328
refactor/polish ~ fix cargo clippy
complaints (negation instead of * -1)
2020-01-27 21:33:49 -06:00
Roy Ivy III
3c2e609bfe
refactor/polish ~ fix cargo clippy
complaints (use values()
)
2020-01-27 21:33:49 -06:00
Roy Ivy III
c6e9808224
refactor/polish ~ fix cargo clippy
complaints (match function signatures)
2020-01-27 21:33:49 -06:00
Roy Ivy III
c6817aefb3
refactor/polish ~ fix cargo clippy
complaints (or_else)
2020-01-27 21:33:49 -06:00
Roy Ivy III
413c64fa12
refactor/polish ~ fix cargo clippy
complaints ('better' as println!()
)
2020-01-27 21:33:48 -06:00
Roy Ivy III
291d2f5d48
refactor/polish ~ fix cargo clippy
complaints ('better' as println!(...)
)
2020-01-27 21:33:48 -06:00
Roy Ivy III
ba5a2435be
refactor/polish ~ fix cargo clippy
complaints (unneeded _
)
2020-01-27 21:33:48 -06:00
Roy Ivy III
493f5f1496
refactor/polish ~ fix cargo clippy
complaints (use +=
/-=
notation)
2020-01-27 21:33:48 -06:00
Roy Ivy III
768ed71725
refactor/polish ~ fix cargo clippy
complaints (use b'...' notation)
2020-01-27 21:33:48 -06:00
Roy Ivy III
b276f4758f
refactor/polish ~ fix cargo clippy
complaints (iter.collect => to_vec)
2020-01-27 21:33:48 -06:00
Roy Ivy III
a9b1a03b37
refactor/polish ~ fix cargo clippy
complaints (fatal/write_all)
2020-01-27 21:33:48 -06:00
Roy Ivy III
662db61336
refactor/polish ~ fix cargo clippy
complaints (fatal/unneeded drop)
2020-01-27 21:33:48 -06:00
Roy Ivy III
181c9d6cae
refactor/polish ~ fix cargo clippy
complaints (fatal/unneeded clone)
2020-01-27 21:33:48 -06:00
Roy Ivy III
6043ac1cbd
refactor/polish ~ fix cargo clippy
complaints (fatal/temporary_cstring_as_ptr)
2020-01-27 21:33:48 -06:00
Roy Ivy III
1f5749e304
refactor/polish ~ fix cargo clippy
complaints (fatal/same if clause)
2020-01-27 21:33:48 -06:00
Roy Ivy III
b3846bf8f1
tests/fix ~ (stat) remove '%a', '%d', '%f' from file system test format due to race conditions
2020-01-27 21:33:47 -06:00
Roy Ivy III
95809ae98e
Add 'windows_legacy' feature to allow build for older windows versions
2020-01-27 21:33:47 -06:00
Roy Ivy III
1f137c245f
refactor/polish ~ fix cargo clippy
complaints (fatal/cast_ptr_alignment)
2020-01-27 21:33:47 -06:00
Roy Ivy III
823fc17c2c
tests/fix ~ (stat) refactor '%w' and '%W' tests due to stat
limitations
...
- allow actual outputs to differ from expected (ie, `stat`) if `stat` is reporting "unknown" creation time
.# [why]
For many *nix flavors, `stat` is unable to detect birth/creation date
for directories/files. The information is available via the `statx()`
system call (for linux kernels >= v4.11), and rust supplies that
information via fs::MetadataExt for v1.40+. So, for rust v1.40+, there
will likely be a mismatch between the output of the system `stat` and
this ('uutils') `stat`.
* ref: <https://askubuntu.com/questions/470134/how-do-i-find-the-creation-time-of-a-file > @@ <https://archive.is/IsEAJ >
2020-01-27 21:33:47 -06:00
Roy Ivy III
c969becbf8
refactor ~ remove unneeded mem::uninitialized() code
...
.# [why]
`mem::ununitialized()` is deprecated as of rust v1.39.0.
And this use is likely a premature optimization attempting to avoid
initializing the byte array to 0, which is usually a *very* fast operation.
* ref: <https://github.com/rust-lang/rust/blob/master/RELEASES.md >
* ref: <https://stackoverflow.com/questions/3654905/faster-way-to-zero-memory-than-with-memset >
2020-01-27 21:33:47 -06:00
Roy Ivy III
14c3f3aa17
tests ~ fix WSL testing
...
+ ToDO added ~ when possible, test under WSL2 and differentiate/liberalize if possible
2020-01-27 21:33:47 -06:00
Roy Ivy III
244bdf3d4f
who: fix ~ remove unneeded/incorrect time format size change
2020-01-27 21:33:47 -06:00
Roy Ivy III
9416709c9c
stat: fix birth/created time transformation
2020-01-27 21:33:47 -06:00
Roy Ivy III
25d4fb71ca
tests/refactor ~ change to use of common code (TestScenario::...
) for testing
2020-01-27 21:33:47 -06:00
Roy Ivy III
d0f6f3d07e
tests/refactor ~ change output test macros to 'actual = expected' format
...
- rust usually uses `assert_eq!(ACTUAL, EXPECTED)`
- ref: https://users.rust-lang.org/t/assert-eq-expected-and-actual/20304/3 @@ https://archive.is/xPp9R
2020-01-27 21:33:47 -06:00
Roy Ivy III
2f23a2e2cb
maint/cicd ~ allow rust 'beta' failures (Travis CI)
2020-01-27 21:33:47 -06:00
Roy Ivy III
45a04ce5fc
refactor ~ replace deprecated trim_{left,right}...
with trim_{start,end}...
...
- `trim_{start,end}{,_matches}` stabilized in rust v1.30.0
- `trim_{start,end}{,_matches}` deprecated (with compiler warnings) in rust v1.33.0
+ requires MinSRV >= v1.30.0
* ref: https://github.com/rust-lang/rust/blob/master/RELEASES.md
2020-01-27 21:33:47 -06:00
Roy Ivy III
b4b0ee40d7
refactor/polish ~ convert to try!
to ?
syntax
...
- convert to newer `?` syntax, fixing compiler warnings
+ requires MinSRV >= v1.13.0
.# [why]
The `?` operator was stabilized in rust v1.13.0.
Warnings requesting conversion from the old `try!` macro to the `?` operator
were introduced in rust v1.39.0.
* ref: <https://github.com/rust-lang/rust/blob/master/RELEASES.md >
2020-01-27 21:33:47 -06:00
Roy Ivy III
c22cf215ba
refactor/polish ~ convert to inclusive range operator syntax (..=
)
...
- convert to newer `..=` syntax, fixing compiler warnings
+ requires MinSRV >= v1.26.0
.# [why]
The inclusive range operator (`..=`) was stabilized in rust v1.26.0.
Warnings requesting conversion from the old `...` operator to `..=` were
introduced in rust v1.37.0.
* ref: <https://github.com/rust-lang/rust/blob/master/RELEASES.md >
2020-01-27 21:33:47 -06:00
Roy Ivy III
74f26a2d83
maint/build ~ add cargo make
support
2020-01-27 21:33:47 -06:00
Roy Ivy III
55209c6490
cp: use CreateFileW
to increase legacy windows compatiblity
2020-01-27 21:33:46 -06:00
Alex Lyon
2dad625dfa
Merge pull request #1402 from GabrielGanne/master
...
ls: fix --color flag
2020-01-27 15:20:43 -08:00
Alex Lyon
bf1cec8365
Merge pull request #1444 from sylvestre/master
...
uptime: match the gnu version output
2020-01-27 14:50:48 -08:00
Sylvestre Ledru
191402d282
Add the codecov badge
2020-01-03 23:10:24 +01:00
Sylvestre Ledru
0420d0849f
uptime: match the gnu version output
2020-01-03 22:58:11 +01:00
Martin Matous
94e756b6cd
README: clarify elevated installation
2019-10-12 22:09:33 +02:00
cnd
91899b34b9
Merge pull request #1430 from bippityboppity/add-dyn
...
Add the 'dyn' keyword where necessary
2019-10-02 10:31:03 +04:00
bippityboppity
3511aa987a
Add the 'dyn' keyword where necessary
...
The keyword is needed for trait objects and is intended to improve
readability.
https://doc.rust-lang.org/edition-guide/rust-2018/trait-system/dyn-trait-for-trait-objects.html
2019-10-01 18:34:26 +02:00
cnd
787a11fea8
Merge pull request #1428 from AdminXVII/update-deps-redox
...
Update the dependencies for redox compilation
2019-09-30 17:01:59 +04:00
Xavier L'Heureux
63f3f78bda
Update the dependencies for redox compilation
2019-09-28 09:29:22 -04:00