mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
ci: upgrade to Rust 1.44.0 (#6113)
This commit is contained in:
parent
7069d60423
commit
9a783ae4e6
4 changed files with 5 additions and 5 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -66,7 +66,7 @@ jobs:
|
|||
- name: Install rust
|
||||
uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
rust-version: "1.43.0"
|
||||
rust-version: 1.44.0
|
||||
|
||||
- name: Install clippy and rustfmt
|
||||
if: matrix.config.kind == 'lint'
|
||||
|
|
|
@ -521,7 +521,7 @@ pub fn analyze_dependencies_and_references(
|
|||
let comments = parser
|
||||
.comments
|
||||
.take_leading_comments(module_span.lo())
|
||||
.unwrap_or_else(|| vec![]);
|
||||
.unwrap_or_else(Vec::new);
|
||||
|
||||
let mut references = vec![];
|
||||
for comment in comments {
|
||||
|
|
|
@ -2787,7 +2787,7 @@ mod util {
|
|||
pub const PERMISSION_DENIED_PATTERN: &str = "PermissionDenied";
|
||||
|
||||
lazy_static! {
|
||||
static ref DENO_DIR: TempDir = { TempDir::new().expect("tempdir fail") };
|
||||
static ref DENO_DIR: TempDir = TempDir::new().expect("tempdir fail");
|
||||
|
||||
// STRIP_ANSI_RE and strip_ansi_codes are lifted from the "console" crate.
|
||||
// Copyright 2017 Armin Ronacher <armin.ronacher@active-4.com>. MIT License.
|
||||
|
|
|
@ -833,12 +833,12 @@ impl SourceMapGetter for TsCompiler {
|
|||
self
|
||||
.try_resolve_and_get_source_file(script_name)
|
||||
.and_then(|out| {
|
||||
str::from_utf8(&out.source_code).ok().and_then(|v| {
|
||||
str::from_utf8(&out.source_code).ok().map(|v| {
|
||||
// Do NOT use .lines(): it skips the terminating empty line.
|
||||
// (due to internally using .split_terminator() instead of .split())
|
||||
let lines: Vec<&str> = v.split('\n').collect();
|
||||
assert!(lines.len() > line);
|
||||
Some(lines[line].to_string())
|
||||
lines[line].to_string()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue