wiki -> docs
This commit is contained in:
parent
c64073b2f5
commit
ff91c6359a
5 changed files with 11 additions and 11 deletions
4
util/update_lints.py
Executable file → Normal file
4
util/update_lints.py
Executable file → Normal file
|
@ -29,7 +29,7 @@ declare_restriction_lint_re = re.compile(r'''
|
|||
|
||||
nl_escape_re = re.compile(r'\\\n\s*')
|
||||
|
||||
wiki_link = 'https://rust-lang-nursery.github.io/rust-clippy/master/index.html'
|
||||
docs_link = 'https://rust-lang-nursery.github.io/rust-clippy/master/index.html'
|
||||
|
||||
|
||||
def collect(lints, deprecated_lints, restriction_lints, fn):
|
||||
|
@ -169,7 +169,7 @@ def main(print_only=False, check=False):
|
|||
'CHANGELOG.md',
|
||||
"<!-- begin autogenerated links to wiki -->",
|
||||
"<!-- end autogenerated links to wiki -->",
|
||||
lambda: ["[`{0}`]: {1}#{0}\n".format(l[1], wiki_link) for l in
|
||||
lambda: ["[`{0}`]: {1}#{0}\n".format(l[1], docs_link) for l in
|
||||
sorted(lints + restriction_lints + deprecated_lints,
|
||||
key=lambda l: l[1])],
|
||||
replace_start=False, write_back=not check)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue