Skip to content

Commit

Permalink
Discard unneeded TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslavsky committed May 26, 2024
1 parent 40e7bfc commit 8918da7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion crates/wit-component/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ world test-world {}

// Parse pre-canned WIT to build resolver
let mut resolver = Resolve::default();
// TODO(azaslavsky): assumes single package per file
let pkg = UnresolvedPackage::parse(&Path::new("in-code.wit"), COMPONENT_WIT)?.remove(0);
let pkg_id = resolver.push(pkg)?;
let world = resolver.select_world(pkg_id, Some("test-world").into())?;
Expand Down
1 change: 0 additions & 1 deletion crates/wit-component/tests/linking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ fn encode(wat: &str, wit: Option<&str>) -> Result<Vec<u8>> {

if let Some(wit) = wit {
let mut resolve = Resolve::default();
// TODO(azaslavsky): assumes single package per file
let pkg = resolve.push(UnresolvedPackage::parse(Path::new("wit"), wit)?.remove(0))?;
let world = resolve.select_world(pkg, None)?;

Expand Down
3 changes: 1 addition & 2 deletions crates/wit-component/tests/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ fn load_test_wit(path: &Path) -> Result<(Resolve, WorldId)> {
bail!("Files were completely empty - are you sure these are the files you're looking for?")
}
if packages.len() > 1 {
// TODO(azaslavsky): Support this.
bail!("Multi-package test targeting it not yet supported.")
bail!("Multi-package targeting tests are not yet supported.")
}
let package = packages.remove(0);

Expand Down

0 comments on commit 8918da7

Please sign in to comment.