add missing copyright headers to *.rs

This commit is contained in:
Damien Elmes 2021-04-13 18:59:16 +10:00
parent e520e8df02
commit 28fdbd67ae
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
fn main() { fn main() {
// this build script simply exists so we can extend the link path // this build script simply exists so we can extend the link path
// inside Bazel based on an env var, as we need to provide a custom // inside Bazel based on an env var, as we need to provide a custom

View File

@ -1,3 +1,6 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
// Include auto-generated content // Include auto-generated content
#![allow(clippy::all)] #![allow(clippy::all)]

View File

@ -37,7 +37,7 @@ for dirpath, dirnames, fnames in os.walk("."):
continue continue
for fname in fnames: for fname in fnames:
for ext in ".py", ".ts": for ext in ".py", ".ts", ".rs":
if fname.endswith(ext): if fname.endswith(ext):
path = dir / fname path = dir / fname
with open(path) as f: with open(path) as f: