Skip to content

Commit

Permalink
remove me debug capi output
Browse files Browse the repository at this point in the history
  • Loading branch information
divarvel committed Oct 31, 2023
1 parent 927c632 commit 3c06ba7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions biscuit-auth/src/token/authorizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ impl Authorizer {

impl std::fmt::Display for Authorizer {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
writeln!(f, "test")?;
let mut has_facts = false;
let mut all_facts = BTreeMap::new();
for (origin, factset) in &self.world.facts.inner {
Expand Down Expand Up @@ -1694,7 +1695,8 @@ mod tests {
);

assert_eq!(
r#"// Facts:
r#"test
// Facts:
// origin: 0
authority_fact(true);
authority_rule(true);
Expand All @@ -1718,6 +1720,6 @@ allow if true;
#[test]
fn empty_authorizer_display() {
let authorizer = Authorizer::new();
assert_eq!("", authorizer.to_string())
assert_eq!("test\n", authorizer.to_string())
}
}

0 comments on commit 3c06ba7

Please sign in to comment.