1
Fork 0

wiki -> docs

This commit is contained in:
Oliver Schneider 2017-09-01 10:29:49 +02:00
parent c64073b2f5
commit ff91c6359a
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
5 changed files with 11 additions and 11 deletions

4
util/update_lints.py Executable file → Normal file
View 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)