diff src/constants.rs @ 172:6727cbe56f4a

Test environment variable setting; minor cleanup.
author Paul Fisher <paul@pfish.zone>
date Fri, 25 Jul 2025 21:02:53 -0400
parents e27c5c667a5a
children e30775c80b49
line wrap: on
line diff
--- a/src/constants.rs	Fri Jul 25 20:52:14 2025 -0400
+++ b/src/constants.rs	Fri Jul 25 21:02:53 2025 -0400
@@ -70,16 +70,13 @@
         impl From<RawFlags> for $name {
             #[allow(unused_doc_comments)]
             fn from(value: RawFlags) -> Self {
-                eprintln!(concat!(stringify!($name), " FROM RAW FLAGS"));
                 let value: c_int = value.into();
                 let result = Self::empty();
                 $(
                     $(#[$m_ident $($m_arg)*])*
                     let result = result | if value & $value_value == 0 {
-                        eprintln!(concat!("checked against ", stringify!($value_value)));
                         Self::empty()
                     } else {
-                        eprintln!(concat!("checked against ", stringify!($value_value), " success"));
                         Self::$item_name
                     };
                 )*
@@ -91,15 +88,12 @@
         impl From<$name> for RawFlags {
             #[allow(unused_doc_comments)]
             fn from(value: $name) -> Self {
-                eprintln!(concat!("RAW FLAGS FROM ", stringify!($name)));
                 let result = 0;
                 $(
                     $(#[$m_ident $($m_arg)*])*
                     let result = result | if value.contains($name::$item_name) {
-                        eprintln!(concat!("checked against ", stringify!($item_name), " success"));
                         $value_value
                     } else {
-                        eprintln!(concat!("checked against ", stringify!($item_name)));
                         0
                     };
                 )*
@@ -430,7 +424,7 @@
     fn from(value: Result<T>) -> Self {
         match value {
             Ok(_) => ReturnCode::SUCCESS,
-            Err(otherwise) => otherwise.into()
+            Err(otherwise) => otherwise.into(),
         }
     }
 }