Skip to content

Commit 0014f12

Browse files
authored
Merge pull request #9 from rage/update-ci
Update github actions
2 parents b2cdbad + 12e065e commit 0014f12

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
deploy:
2828
needs: test
2929
if: startsWith(github.ref, 'refs/tags/v')
30-
runs-on: ubuntu-16.04
30+
runs-on: ubuntu-20.04
3131
strategy:
3232
matrix:
3333
target: [i686-unknown-linux-gnu, x86_64-unknown-linux-gnu]
3434
steps:
3535
- uses: actions/checkout@v2
36-
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
36+
- uses: google-github-actions/setup-gcloud@master
3737
with:
3838
project_id: ${{ secrets.GCP_PROJECT_ID }}
3939
service_account_key: ${{ secrets.GCP_SA_KEY }}

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: macos-latest
3131
steps:
3232
- uses: actions/checkout@v2
33-
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
33+
- uses: google-github-actions/setup-gcloud@master
3434
with:
3535
project_id: ${{ secrets.GCP_PROJECT_ID }}
3636
service_account_key: ${{ secrets.GCP_SA_KEY }}

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
target: [i686-pc-windows-msvc, x86_64-pc-windows-msvc]
3434
steps:
3535
- uses: actions/checkout@v2
36-
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
36+
- uses: google-github-actions/setup-gcloud@master
3737
with:
3838
project_id: ${{ secrets.GCP_PROJECT_ID }}
3939
service_account_key: ${{ secrets.GCP_SA_KEY }}

src/commands/command_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ impl Client for ClientProduction {
413413
});
414414
}
415415

416-
tmc_langs::download_or_update_course_exercises(&self.tmc_client, path, &exercise_ids, true)
416+
tmc_langs::download_or_update_course_exercises(&self.tmc_client, path, exercise_ids, true)
417417
}
418418

419419
fn get_course_details(&self, course_id: usize) -> Result<CourseDetails, ClientError> {

src/io_module.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ impl Io for IoProduction<'_> {
7878
self.buffer.set_color(&colorspec).unwrap();
7979

8080
self.buffer.write_all(text_to_output.as_bytes()).expect("");
81-
self.bufferwriter.print(&self.buffer).unwrap();
81+
self.bufferwriter.print(self.buffer).unwrap();
8282
self.buffer.clear();
8383

8484
colorspec.clear();
8585
self.buffer.set_color(&colorspec).unwrap();
8686
}
8787
PrintColor::Normal => {
8888
self.buffer.write_all(text_to_output.as_bytes()).expect("");
89-
self.bufferwriter.print(&self.buffer).unwrap();
89+
self.bufferwriter.print(self.buffer).unwrap();
9090
self.buffer.clear();
9191
}
9292
PrintColor::Failed => {
@@ -96,7 +96,7 @@ impl Io for IoProduction<'_> {
9696
self.buffer.set_color(&colorspec).unwrap();
9797

9898
self.buffer.write_all(text_to_output.as_bytes()).expect("");
99-
self.bufferwriter.print(&self.buffer).unwrap();
99+
self.bufferwriter.print(self.buffer).unwrap();
100100
self.buffer.clear();
101101

102102
colorspec.clear();

src/updater.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ fn update(version: String) -> Result<(), std::io::Error> {
221221
while downloaded < size {
222222
let n = {
223223
let buf = src.fill_buf()?;
224-
dest.write_all(&buf)?;
224+
dest.write_all(buf)?;
225225
buf.len()
226226
};
227227
if n == 0 {

0 commit comments

Comments
 (0)