fix(call): remove dead test helper and unused mut (clippy -D warnings clean)
This commit is contained in:
@@ -532,7 +532,7 @@ mod tests {
|
|||||||
);
|
);
|
||||||
let provider: Arc<dyn IdentityProvider> = Arc::new(StaticIdentityProvider::new());
|
let provider: Arc<dyn IdentityProvider> = Arc::new(StaticIdentityProvider::new());
|
||||||
let adapter = CallAdapter::new(registry, provider);
|
let adapter = CallAdapter::new(registry, provider);
|
||||||
let mut conn = CallConnection::new(stub_connection());
|
let conn = CallConnection::new(stub_connection());
|
||||||
let imported = HandlerRegistration::new(
|
let imported = HandlerRegistration::new(
|
||||||
OperationSpec::new(
|
OperationSpec::new(
|
||||||
"worker/exec",
|
"worker/exec",
|
||||||
@@ -598,7 +598,7 @@ mod tests {
|
|||||||
);
|
);
|
||||||
let provider: Arc<dyn IdentityProvider> = Arc::new(StaticIdentityProvider::new());
|
let provider: Arc<dyn IdentityProvider> = Arc::new(StaticIdentityProvider::new());
|
||||||
let adapter = CallAdapter::new(registry, provider);
|
let adapter = CallAdapter::new(registry, provider);
|
||||||
let mut conn = CallConnection::new(stub_connection());
|
let conn = CallConnection::new(stub_connection());
|
||||||
let imported = HandlerRegistration::new(
|
let imported = HandlerRegistration::new(
|
||||||
OperationSpec::new(
|
OperationSpec::new(
|
||||||
"worker/exec",
|
"worker/exec",
|
||||||
|
|||||||
@@ -403,18 +403,6 @@ mod tests {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn internal_spec(name: &str, acl: AccessControl) -> OperationSpec {
|
|
||||||
OperationSpec::new(
|
|
||||||
name,
|
|
||||||
OperationType::Query,
|
|
||||||
Visibility::Internal,
|
|
||||||
serde_json::json!({}),
|
|
||||||
serde_json::json!({}),
|
|
||||||
vec![],
|
|
||||||
acl,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn registry_with(name: &str, visibility: Visibility, acl: AccessControl) -> OperationRegistry {
|
fn registry_with(name: &str, visibility: Visibility, acl: AccessControl) -> OperationRegistry {
|
||||||
let mut registry = OperationRegistry::new();
|
let mut registry = OperationRegistry::new();
|
||||||
registry.register(HandlerRegistration::new(
|
registry.register(HandlerRegistration::new(
|
||||||
|
|||||||
Reference in New Issue
Block a user