Skip to content

Commit

Permalink
Resolve PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
  • Loading branch information
lann committed Jul 19, 2024
1 parent b295d23 commit 0df8436
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/factor-wasi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = { workspace = true }
[dependencies]
async-trait = "0.1"
cap-primitives = "3.0.0"
spin-app = { path = "../app" }
spin-factors = { path = "../factors" }
tokio = { version = "1" }
wasmtime = { workspace = true }
Expand Down
5 changes: 2 additions & 3 deletions crates/factor-wasi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ mod wasi_2023_11_10;

use std::{future::Future, net::SocketAddr, path::Path};

use spin_app::AppComponent;
use spin_factors::{
anyhow, Factor, FactorInstanceBuilder, InitContext, InstanceBuilders, PrepareContext,
RuntimeFactors, RuntimeFactorsInstanceState,
anyhow, AppComponent, Factor, FactorInstanceBuilder, InitContext, InstanceBuilders,
PrepareContext, RuntimeFactors, RuntimeFactorsInstanceState,
};
use tokio::io::{AsyncRead, AsyncWrite};
use wasmtime_wasi::{
Expand Down
4 changes: 2 additions & 2 deletions crates/factors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub use anyhow;
pub use serde;
pub use wasmtime;

pub use spin_app::App;
pub use spin_app::{App, AppComponent};
pub use spin_factors_derive::RuntimeFactors;

pub use crate::{
Expand All @@ -17,7 +17,7 @@ pub use crate::{
runtime_factors::{RuntimeFactors, RuntimeFactorsInstanceState},
};

// Temporary wrappers while refactoring
/// Result wrapper type defaulting to use [`Error`].
pub type Result<T, E = Error> = std::result::Result<T, E>;

#[derive(Debug, thiserror::Error)]
Expand Down

0 comments on commit 0df8436

Please sign in to comment.