Version 0.7.0
Refactoring work by @lebensterben
- Major changes in
lychee-lib::filtermodule:- Fields in
Excludesexcept theRegexSetis now moved toFilter. FiltercontainsOption<Excludes>andOption<Includes>, which are
wrapper struct ofRegexSetinstead ofOption<RegexSet>. As a result
the code now looks cleaner.- Factored out some filtering logics to dedicated functions.
- It's possible to write tests for those functions in addition to tests
for theFilterstruct.
- It's possible to write tests for those functions in addition to tests
- Added docs to
Filter::is_excludedand reorgnized the code.
- Fields in
- placed
derive_builderbytyped_builder:- The internal interface very ugly, as admitted by the author, but we no
longer have nestedOptions like before. - As a result, the
Clientbuilding is much easier to read. - Main benefit of
typed_builderis, the arguments feeded to builder is
checked at compile time instead of run-time.
- The internal interface very ugly, as admitted by the author, but we no
- Fixed a bug in
lychee::tests::usageandlychee-lib::stats::test.- Now it will clear environment variable which would otherwise cause an
issue ifGITHUB_TOKENis set.
- Now it will clear environment variable which would otherwise cause an
- Updated dependencies.