Skip to content

Commit eb95e04

Browse files
committed
nit
1 parent b9d1ccc commit eb95e04

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/deno_dir.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ fn test_code_fetch_no_ext() {
455455
let code_fetch_output = r.unwrap();
456456
// could only test .ends_with to avoid include local abs path
457457
assert!(code_fetch_output.module_name.ends_with("/js/main.ts"));
458+
assert!(code_fetch_output.filename.ends_with("/js/main.ts"));
458459
assert!(code_fetch_output.source_code.len() > 10);
459460

460461
// Test .js extension
@@ -470,6 +471,7 @@ fn test_code_fetch_no_ext() {
470471
.module_name
471472
.ends_with("/js/mock_builtin.js")
472473
);
474+
assert!(code_fetch_output.filename.ends_with("/js/mock_builtin.js"));
473475
assert!(code_fetch_output.source_code.len() > 10);
474476
}
475477

src/http.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
use errors;
44
use errors::{DenoError, DenoResult};
5-
use futures;
6-
use futures::future::Either;
7-
use futures::Future;
85
use tokio_util;
96

10-
use futures::Stream;
7+
use futures;
8+
use futures::future::Either;
9+
use futures::{Future, Stream};
1110
use hyper;
1211
use hyper::client::Client;
1312
use hyper::client::HttpConnector;

0 commit comments

Comments
 (0)