File tree 5 files changed +6
-37
lines changed
turbopack-dev-server/src/source
5 files changed +6
-37
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,9 @@ impl Introspectable for StaticAssetsContentSource {
140
140
. to_resolved ( )
141
141
. await ?,
142
142
) ,
143
- DirectoryEntry :: Other ( _) => todo ! ( "what's DirectoryContent::Other?" ) ,
144
- DirectoryEntry :: Error => todo ! ( ) ,
143
+ DirectoryEntry :: Other ( _) | DirectoryEntry :: Error => {
144
+ todo ! ( "unsupported DirectoryContent variant: {entry:?}" )
145
+ }
145
146
} ;
146
147
Ok ( ( ResolvedVc :: cell ( name. clone ( ) ) , child) )
147
148
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ impl Module for AsyncLoaderModule {
76
76
impl Asset for AsyncLoaderModule {
77
77
#[ turbo_tasks:: function]
78
78
fn content ( & self ) -> Vc < AssetContent > {
79
- todo ! ( )
79
+ panic ! ( "content() should not be called" ) ;
80
80
}
81
81
}
82
82
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl Module for ManifestAsyncModule {
152
152
impl Asset for ManifestAsyncModule {
153
153
#[ turbo_tasks:: function]
154
154
fn content ( & self ) -> Vc < AssetContent > {
155
- todo ! ( )
155
+ panic ! ( "content() should not be called" ) ;
156
156
}
157
157
}
158
158
Original file line number Diff line number Diff line change @@ -268,35 +268,3 @@ impl EcmascriptChunkItem for CachedExternalModuleChunkItem {
268
268
)
269
269
}
270
270
}
271
-
272
- /// A module that only has an ident and no content nor references.
273
- ///
274
- /// It is used to include a module's ident in the module graph before the module
275
- /// itself is resolved, as is the case with NextServerComponentModule's
276
- /// "client modules" and "ssr modules".
277
- #[ turbo_tasks:: value]
278
- pub struct IncludeIdentModule {
279
- ident : ResolvedVc < AssetIdent > ,
280
- }
281
-
282
- #[ turbo_tasks:: value_impl]
283
- impl IncludeIdentModule {
284
- #[ turbo_tasks:: function]
285
- pub fn new ( ident : ResolvedVc < AssetIdent > ) -> Vc < Self > {
286
- Self { ident } . cell ( )
287
- }
288
- }
289
-
290
- impl Asset for IncludeIdentModule {
291
- fn content ( self : Vc < Self > ) -> Vc < AssetContent > {
292
- todo ! ( "IncludeIdentModule doesn't implement content()" )
293
- }
294
- }
295
-
296
- #[ turbo_tasks:: value_impl]
297
- impl Module for IncludeIdentModule {
298
- #[ turbo_tasks:: function]
299
- fn ident ( & self ) -> Vc < AssetIdent > {
300
- * self . ident
301
- }
302
- }
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl Module for WorkerLoaderModule {
62
62
impl Asset for WorkerLoaderModule {
63
63
#[ turbo_tasks:: function]
64
64
fn content ( & self ) -> Vc < AssetContent > {
65
- todo ! ( )
65
+ panic ! ( "content() should not be called" ) ;
66
66
}
67
67
}
68
68
You can’t perform that action at this time.
0 commit comments