Rename puffin-warnings macros to avoid tracing collision (#694)

Also more consistent with Ruff.
This commit is contained in:
Charlie Marsh 2023-12-18 16:33:21 -05:00 committed by GitHub
parent e98804141c
commit 207bb83a1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@ use serde::{de, Deserialize, Deserializer, Serialize};
use pep440_rs::{Pep440Error, VersionSpecifiers};
use pep508_rs::{Pep508Error, Requirement};
use puffin_warnings::warn_once;
use puffin_warnings::warn_user_once;
/// Ex) `>=7.2.0<8.0.0`
static MISSING_COMMA: Lazy<Regex> = Lazy::new(|| Regex::new(r"(\d)([<>=~^!])").unwrap());
@ -63,7 +63,7 @@ fn parse_with_fixups<Err, T: FromStr<Err = Err>>(input: &str, type_name: &str) -
}
if let Ok(requirement) = T::from_str(&patched_input) {
warn_once!(
warn_user_once!(
"Fixing invalid {type_name} by {} (before: `{input}`; after: `{patched_input}`)",
messages.join(", ")
);