Skip to content

Commit 4a1ca5b

Browse files
committed
fix: clippy
1 parent 55a5041 commit 4a1ca5b

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

runtime/src/ext/fetch/fetch/mod.rs

Lines changed: 0 additions & 19 deletions
This file was deleted.

runtime/src/ext/fetch/mod.rs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,25 @@
22
// License, v. 2.0. If a copy of the MPL was not distributed with this
33
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

5-
mod fetch;
65
mod headers;
76
mod request;
87
mod response;
98

10-
pub use fetch::*;
9+
use andromeda_core::Extension;
1110
pub use headers::*;
1211
pub use request::*;
1312
pub use response::*;
13+
14+
#[derive(Default)]
15+
pub struct FetchExt;
16+
17+
impl FetchExt {
18+
pub fn new_extension() -> Extension {
19+
Extension {
20+
name: "fetch",
21+
ops: vec![],
22+
storage: None,
23+
files: vec![include_str!("./fetch/mod.ts")],
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)