From e96933bc163fd81a276cbc169b17f76724a5ac33 Mon Sep 17 00:00:00 2001 From: Mathias Lafeldt Date: Sun, 21 Aug 2022 19:31:14 +0200 Subject: chore: use Rust 1.63.0 (#15464) --- cli/main.rs | 4 +--- cli/tools/test.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'cli') diff --git a/cli/main.rs b/cli/main.rs index 17f3fcffa..8e53d1f0c 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -1070,9 +1070,7 @@ pub fn main() { logger::init(flags.log_level); - let exit_code = get_subcommand(flags).await; - - exit_code + get_subcommand(flags).await }; let exit_code = unwrap_or_exit(run_local(exit_code)); diff --git a/cli/tools/test.rs b/cli/tools/test.rs index 6d24a7e4c..da44eba7c 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -752,7 +752,7 @@ fn extract_files_from_regex_blocks( return None; } - match attributes.get(0) { + match attributes.first() { Some(&"js") => MediaType::JavaScript, Some(&"javascript") => MediaType::JavaScript, Some(&"mjs") => MediaType::Mjs, -- cgit v1.2.3