From 2c43495565601224e9606b786cf6a451969454f3 Mon Sep 17 00:00:00 2001 From: Oleh Bohzok Date: Sat, 21 Sep 2024 17:21:33 +0300 Subject: [PATCH] chore(jans-lock): rename unexported field in the writer Signed-off-by: Oleh Bohzok --- jans-lock/cedarling/cedarling/src/log/stdout_logger.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jans-lock/cedarling/cedarling/src/log/stdout_logger.rs b/jans-lock/cedarling/cedarling/src/log/stdout_logger.rs index 4039256802f..665228ceb9d 100644 --- a/jans-lock/cedarling/cedarling/src/log/stdout_logger.rs +++ b/jans-lock/cedarling/cedarling/src/log/stdout_logger.rs @@ -12,13 +12,13 @@ use std::{cell::RefCell, io::Write, rc::Rc}; /// A logger that do nothing. pub(crate) struct StdOutLogger { // we use `dyn Write`` trait to make it testable and mockable. - writer_ok: RefCell>, + writer: RefCell>, } impl StdOutLogger { pub(crate) fn new() -> Self { Self { - writer_ok: RefCell::new(Box::new(std::io::stdout())), + writer: RefCell::new(Box::new(std::io::stdout())), } } @@ -27,7 +27,7 @@ impl StdOutLogger { #[allow(dead_code)] pub(crate) fn new_with(writer: Box) -> Self { Self { - writer_ok: RefCell::new(writer), + writer: RefCell::new(writer), } } } @@ -38,7 +38,7 @@ impl LogWriter for StdOutLogger { let json_str = serde_json::json!(&entry).to_string(); // we can't handle error here or test it so we just panic if it happens. // we should have specific platform to get error - writeln!(self.writer_ok.borrow_mut(), "{}", &json_str).unwrap(); + writeln!(self.writer.borrow_mut(), "{}", &json_str).unwrap(); } }