Commit Graph

28 Commits (master)

Author SHA1 Message Date
skoriop 0937d575fd fix: rewrite overflow test using `usize::MAX` 8 months ago
skoriop d89df18de2 test: add test for overflow in `LineRange::from` 8 months ago
skoriop 9fcc57e496 fix: integer overflow in `LineRange::parse_range` 8 months ago
David Peter 48541b8507 Fix clippy suggestions
Leads to a performance improvement for `bat -A`:

    | Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
    |:---|---:|---:|---:|---:|
    | `./bat-master --no-config -A ./bat-master` | 259.8 ± 1.1 | 258.4 | 261.7 | 1.15 ± 0.01 |
    | `./bat-2301 --no-config -A ./bat-master` | 225.6 ± 1.8 | 224.0 | 229.5 | 1.00 |
2 years ago
Bojan Durdevic b8e79a2160 Line range edge cases test 3 years ago
Bojan Durdevic 715b0d8bf5 Line range minus overflow prevention 3 years ago
Bojan Durdevic 0eb4aaac1e Line range minus syntax clippy suggestions addressed 3 years ago
Bojan Durdevic bc86c29185 Support for line range minus syntax 3 years ago
Bojan Durdevic c86a179412 PR comments addressed for line range +delta syntax 3 years ago
Bojan Durdevic 0748783404 Support for line range plus syntax 3 years ago
Lzu Tao e37e9c1214 Fix some clippy lints
Some might actually improve perf
4 years ago
sharkdp 702cb198da Rename error module 4 years ago
sharkdp ec0ce05455 Better API for highlighting lines 4 years ago
sharkdp a8851e1307 Hide methods from line_range 4 years ago
sharkdp a7338e2ea2 Run cargo fmt 4 years ago
sharkdp fedd32173e Restructure and fix bug in line range module 4 years ago
sharkdp 4855a47105 Rename enum field 4 years ago
sharkdp 06b7be7ee9 Major restructuring of theme/syntax handling 4 years ago
sharkdp ca066bf7cd Run 'cargo fmt' 4 years ago
Liam Kalir 5ef1c6cce2 Grammar touch-ups, more descriptive error message for invalid line
ranges
4 years ago
Liam Kalir 93881d9a64 Adds range syntax for line highlights 4 years ago
Fahmi Akbar Wildana 2253d07341 Derive fmt::Debug whenever possible 5 years ago
Fahmi Akbar Wildana 7208a63a49 Implement trait Default for struct Config 5 years ago
Daniele Esposti 82f14121bd Applied linter fixes 5 years ago
Daniele Esposti a21ae614e6 Migrated to Rust 2018 5 years ago
sharkdp 496e0bc046 Allow for multiple line ranges
See #23
6 years ago
ms2300 5444b0dfed Fixes mut issue 6 years ago
sharkdp 9316f2a758 Major refactoring and cleanup 6 years ago