Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cedar-policy-core/src/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const REQUIRED_STACK_SPACE: usize = 1024 * 100;
type UnknownsMapper<'e> = Box<dyn Fn(&str) -> Option<Value> + 'e>;

#[expect(clippy::expect_used, reason = "`Name`s in here are valid `Name`s")]
mod names {
pub(crate) mod names {
use super::Name;
use std::sync::LazyLock;

Expand Down Expand Up @@ -1159,7 +1159,7 @@ impl Value {
}

#[inline(always)]
fn stack_size_check() -> Result<()> {
pub(crate) fn stack_size_check() -> Result<()> {
// We assume there's enough space if we cannot determine it with `remaining_stack`
if stacker::remaining_stack().unwrap_or(REQUIRED_STACK_SPACE) < REQUIRED_STACK_SPACE {
return Err(EvaluationError::recursion_limit(None));
Expand Down
1 change: 1 addition & 0 deletions cedar-policy-core/src/tpe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub mod evaluator;
pub mod request;
pub mod residual;
pub mod response;
pub(crate) mod test_utils;

use std::{collections::HashMap, sync::Arc};

Expand Down
Loading
Loading