Skip to content

Commit 78524b3

Browse files
committed
Upgrade to Rust 2021 edition
1 parent 779a22f commit 78524b3

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
rust: ["1.54.0", "1.60.0"]
11+
rust: ["1.56.1", "1.60.0"]
1212
runs-on: ${{ matrix.os }}
1313
steps:
1414
- name: Checkout source

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rust-script"
33
version = "0.22.0"
4-
edition = "2018"
4+
edition = "2021"
55
authors = ["Fredrik Fornwall <fredrik@fornwall.net>"]
66
description = "Command-line tool to run Rust \"scripts\" which can make use of crates."
77
homepage = "https://rust-script.org"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ ./script.rs
2929
A random number: 9240261453149857564
3030
```
3131

32-
Rust version 1.54 or newer required.
32+
Rust version 1.56.1 or newer required.
3333

3434
See the [documentation at rust-script.org](https://rust-script.org).
3535

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ impl BuildKind {
9595

9696
fn parse_args() -> Args {
9797
use clap::{Arg, ArgGroup, Command};
98-
use std::iter::FromIterator;
9998
let version = option_env!("CARGO_PKG_VERSION").unwrap_or("unknown");
10099
let about = r#"Compiles and runs a Rust script."#;
101100

0 commit comments

Comments
 (0)