Skip to content

Commit

Permalink
inline cow
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Nov 29, 2024
1 parent 9caa8e4 commit 2bd2649
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/args/deno_json.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

#[cfg(test)]
use std::borrow::Cow;
use std::collections::HashSet;

use deno_config::deno_json::TsConfigForEmit;
Expand All @@ -20,7 +18,7 @@ impl<'a> deno_config::fs::DenoConfigFs for DenoConfigFsAdapter<'a> {
fn read_to_string_lossy(
&self,
path: &std::path::Path,
) -> Result<Cow<'static, str>, std::io::Error> {
) -> Result<std::borrow::Cow<'static, str>, std::io::Error> {
self
.0
.read_text_file_lossy_sync(path, None)
Expand Down

0 comments on commit 2bd2649

Please sign in to comment.