Lena
4c85483486
Inline format!
args wherever possible
2024-02-25 00:38:11 +01:00
Anomalocaridid
e32ad0b048
Add $LESSOPEN
and $LESSCLOSE
support ( #2444 )
2023-09-02 08:48:26 +02:00
Martin Nordholts
acb1231e40
Run cargo clippy --fix --all-targets --all-features
with Rust 1.60
...
Clippy in the newly released Rust 1.60 found some new lints.
Conveniently, all of them were fixable with `--fix`.
By fixing these lints it becomes easier for us and others to see when
new lints are introduced.
2022-05-04 07:49:40 +02:00
Mahdi Dibaiee
312c8ef01f
Add new --style
called header-filesize
and display it by default ( #1988 )
...
Also rename `header` to `header-filename`.
Related to #1701
2022-02-07 20:48:57 +01:00
Martin Nordholts
dc8225f682
src/assets.rs: Extract helper method OpenedInput::path()
2021-09-27 08:00:58 +02:00
Marcin Puc
4baa346aae
Use deref coercion to simplify some argument passing
2021-09-12 15:50:10 +02:00
Marcin Puc
372e42f350
Reduce nesting in if blocks by short circuiting
2021-09-12 15:50:10 +02:00
Martin Nordholts
ed09f90e5e
Fix all lints that are new with Rust 1.54
...
They are all of the following type:
https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
2021-08-19 07:19:12 +02:00
Martin Nordholts
28eca6a2be
Use assert!(..) instead of assert_eq!(true, ..)
...
This fixes all of these lint warnings:
https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
They only appear in recent versions of clippy. Not on our MSRV.
2021-08-02 22:35:50 +02:00
Ville Skyttä
90e48e9b61
Spelling fixes
2021-06-13 22:08:56 +02:00
David Peter
2e7f2b6c07
'mut self' => 'self', remove pub
2021-03-07 14:59:10 +01:00
Aleksey Kladov
35347c2310
Improve readability
...
Using `Path`s for paths expresses intent more clearly.
2021-03-07 14:59:10 +01:00
Niklas Mohrin
694b31909a
Change circle detection to use new more conservative method and run in main loop instead of before the loop
2021-02-28 23:04:49 +01:00
sharkdp
03a2710a08
Use new matches!(…) macro to simplify code
2021-01-09 19:43:39 +01:00
Niklas Mohrin
21ae26cb17
Add cycle detection with clircle, now v0.2
2021-01-05 18:21:16 +01:00
sharkdp
a6810e3353
Revert "Add io cycle detection with clircle"
...
This reverts commit aa2ae19dfd
.
2020-11-24 21:40:11 +01:00
MarcoIeni
f5531cc7fa
remove all matches
2020-11-23 14:25:01 +01:00
MarcoIeni
43b2ee5e71
fix some clippy warnings
2020-11-23 14:25:01 +01:00
Niklas Mohrin
31793cfa62
Add io cycle detection with clircle
2020-11-23 14:06:54 +01:00
Ethan P
d2b26a5f1f
Remove unnecessary '-> ()'s
2020-05-29 22:13:10 +02:00
Ethan P
9d08c0102e
Replace Input::stdin_as_file with bat-application functions
2020-05-29 22:13:10 +02:00
Ethan P
7a9decad70
Remove Input.as_file and add Input::stdin_as_file
2020-05-29 22:13:10 +02:00
Ethan P
798b742617
Refactor InputDescription API into Input API
2020-05-29 22:13:10 +02:00
Ethan P
11a72ab765
Fix a typo
2020-05-29 22:13:10 +02:00
Ethan P
0319149b4d
[breaking] Remove special handling for theme previews
2020-05-29 22:13:10 +02:00
Ethan P
981352992b
Add InputDescription API
2020-05-29 22:13:10 +02:00
Ethan P
384ea38bd9
Add documentation to InputDescription
2020-05-29 22:13:10 +02:00
Ethan P
cc52f79e42
Add helper fn for checking if opened input is theme preview file
2020-05-15 12:20:20 -07:00
sharkdp
261a7ea154
Add *_with_name methods
2020-04-22 23:55:28 +02:00
sharkdp
702cb198da
Rename error module
2020-04-22 23:55:28 +02:00
sharkdp
13e6b3fac7
Reduce public API
2020-04-22 23:55:28 +02:00
sharkdp
26c951fec4
Fix warnings, sort imports, input from string
2020-04-22 23:55:28 +02:00
sharkdp
590960f7f5
Completely refactor 'input' module
2020-04-22 23:55:28 +02:00
sharkdp
f3b90ddb38
Add InputDescription
2020-04-22 23:55:28 +02:00
sharkdp
f8d0956893
Rename InputFile => Input
2020-04-22 23:55:28 +02:00