File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -16,25 +16,23 @@ repos:
1616 rev : " v1.0"
1717 hooks :
1818 - id : fmt
19+ - id : clippy
20+ args : [--fix]
1921 - repo : https://github.com/PyCQA/isort
2022 rev : 5.12.0
2123 hooks :
2224 - id : isort
23- - repo : https://github.com/pycqa/flake8
24- rev : " 6.0.0"
25- hooks :
26- - id : flake8
2725 - repo : https://github.com/asottile/pyupgrade
28- rev : v3.3 .1
26+ rev : v3.10 .1
2927 hooks :
3028 - id : pyupgrade
3129 - repo : https://github.com/psf/black
32- rev : 23.1 .0
30+ rev : 23.7 .0
3331 hooks :
3432 - name : black
3533 id : black
3634 args : ["--line-length", "79"]
3735 - repo : https://github.com/pre-commit/mirrors-prettier
38- rev : " v3.0.0-alpha.4 "
36+ rev : " v3.0.3 "
3937 hooks :
4038 - id : prettier
Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ impl RegexPy {
2020 }
2121
2222 fn find ( & self , value : & str ) -> Option < MatchPy > {
23- match self . inner . find ( value) {
24- Some ( inner) => Some ( MatchPy { inner } ) ,
25- None => None ,
26- }
23+ self . inner . find ( value) . map ( |inner| MatchPy { inner } )
2724 }
2825
2926 fn find_iter ( & self , value : & str ) -> Vec < MatchPy > {
You can’t perform that action at this time.
0 commit comments