From 8e94b2e3b803277d3f2224fff0ac7dfb743732be Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 4 Jul 2021 16:58:03 +0800 Subject: [PATCH] Change no-std build scripts. --- .github/workflows/build.yml | 6 +++--- src/error_parsing.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24607668..1bd93419 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,9 +67,9 @@ jobs: strategy: matrix: include: - - {os: ubuntu-latest, flags: "--profile unix -Z unstable-options", experimental: false} - - {os: windows-latest, flags: "--profile windows -Z unstable-options", experimental: true} - - {os: macos-latest, flags: "--profile macos -Z unstable-options", experimental: false} + - {os: ubuntu-latest, experimental: false} + - {os: windows-latest, experimental: true} + - {os: macos-latest, experimental: false} steps: - name: Checkout uses: actions/checkout@v2 diff --git a/src/error_parsing.rs b/src/error_parsing.rs index 02596bc4..d89ca226 100644 --- a/src/error_parsing.rs +++ b/src/error_parsing.rs @@ -126,7 +126,7 @@ pub enum ParseErrorType { /// An identifier is a reserved keyword. Reserved(String), /// An expression is of the wrong type. - /// Wrapped values are the type requested and type of the actual result. + /// Wrapped values are the type requested and type of the actual result. MismatchedType(String, String), /// Missing an expression. Wrapped value is the expression type. ExprExpected(String), @@ -228,7 +228,7 @@ impl fmt::Display for ParseErrorType { }, Self::FnMissingParams(s) => write!(f, "Expecting parameters for function '{}'", s), Self::FnDuplicatedParam(s, arg) => write!(f, "Duplicated parameter '{}' for function '{}'", arg, s), - + Self::DuplicatedProperty(s) => write!(f, "Duplicated property '{}' for object map literal", s), Self::DuplicatedSwitchCase => f.write_str("Duplicated switch case"), Self::DuplicatedVariable(s) => write!(f, "Duplicated variable name '{}'", s),