feat: wit-bindgen-sample
This commit is contained in:
@@ -14,9 +14,9 @@ impl FnResult {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn success(result: String) -> Self {
|
||||
pub fn success(result: impl Into<String>) -> Self {
|
||||
FnResult {
|
||||
result: Some(result),
|
||||
result: Some(result.into()),
|
||||
error: None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user