Commit Graph

35 Commits (master)

Author SHA1 Message Date
Lena 4c85483486 Inline `format!` args wherever possible 3 months ago
Anomalocaridid e32ad0b048
Add `$LESSOPEN` and `$LESSCLOSE` support (#2444) 9 months ago
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.
2 years ago
Mahdi Dibaiee 312c8ef01f
Add new `--style` called `header-filesize` and display it by default (#1988)
Also rename `header` to `header-filename`.

Related to #1701
2 years ago
Martin Nordholts dc8225f682 src/assets.rs: Extract helper method OpenedInput::path() 3 years ago
Marcin Puc 4baa346aae Use deref coercion to simplify some argument passing 3 years ago
Marcin Puc 372e42f350 Reduce nesting in if blocks by short circuiting 3 years ago
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
3 years ago
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.
3 years ago
Ville Skyttä 90e48e9b61 Spelling fixes 3 years ago
David Peter 2e7f2b6c07 'mut self' => 'self', remove pub 3 years ago
Aleksey Kladov 35347c2310 Improve readability
Using `Path`s for paths expresses intent more clearly.
3 years ago
Niklas Mohrin 694b31909a Change circle detection to use new more conservative method and run in main loop instead of before the loop 3 years ago
sharkdp 03a2710a08 Use new matches!(…) macro to simplify code 3 years ago
Niklas Mohrin 21ae26cb17 Add cycle detection with clircle, now v0.2 3 years ago
sharkdp a6810e3353 Revert "Add io cycle detection with clircle"
This reverts commit aa2ae19dfd.
4 years ago
MarcoIeni f5531cc7fa remove all matches 4 years ago
MarcoIeni 43b2ee5e71 fix some clippy warnings 4 years ago
Niklas Mohrin 31793cfa62 Add io cycle detection with clircle 4 years ago
Ethan P d2b26a5f1f Remove unnecessary '-> ()'s 4 years ago
Ethan P 9d08c0102e Replace Input::stdin_as_file with bat-application functions 4 years ago
Ethan P 7a9decad70 Remove Input.as_file and add Input::stdin_as_file 4 years ago
Ethan P 798b742617 Refactor InputDescription API into Input API 4 years ago
Ethan P 11a72ab765 Fix a typo 4 years ago
Ethan P 0319149b4d [breaking] Remove special handling for theme previews 4 years ago
Ethan P 981352992b Add InputDescription API 4 years ago
Ethan P 384ea38bd9 Add documentation to InputDescription 4 years ago
Ethan P cc52f79e42
Add helper fn for checking if opened input is theme preview file 4 years ago
sharkdp 261a7ea154 Add *_with_name methods 4 years ago
sharkdp 702cb198da Rename error module 4 years ago
sharkdp 13e6b3fac7 Reduce public API 4 years ago
sharkdp 26c951fec4 Fix warnings, sort imports, input from string 4 years ago
sharkdp 590960f7f5 Completely refactor 'input' module 4 years ago
sharkdp f3b90ddb38 Add InputDescription 4 years ago
sharkdp f8d0956893 Rename InputFile => Input 4 years ago