v0.1.1-pre.002-fix.001

This commit is contained in:
2026-08-14 15:18:23 +02:00
parent 72ddabd9f2
commit 81eda2e5ad
4 changed files with 135 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
// file: crates/ksp-core-lib/tests/public_api.rs
// version: 1
// version: 2
//! Integration tests for the public `ksp-core-lib` error contract.
fn public_result() -> ksp_core_lib::Result<()> {
let error = ksp_core_lib::Error::new(ksp_core_lib::ErrorCode::new("consumer", "failed"), "consumer failure").with_context("operation", "public_api");

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-core-lib/unit_tests/error.rs
// version: 1
// version: 2
#[derive(Debug)]
struct TestSource;
@@ -12,7 +12,7 @@ impl std::fmt::Display for TestSource {
impl std::error::Error for TestSource {}
fn assert_send_sync<T>()
fn assert_send_sync<T>(_: std::marker::PhantomData<T>)
where
T: std::marker::Send + std::marker::Sync,
{
@@ -73,6 +73,6 @@ fn standard_source_is_preserved() {
#[test]
fn common_error_is_send_and_sync() {
assert_send_sync::<crate::Error>();
assert_send_sync(std::marker::PhantomData::<crate::Error>);
return;
}