Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
fix(clippy): collapse nested if in parse_literal (collapsible_if)
FABIOTESS908547b49f55
diff --git a/src/language.rs b/src/language.rsindex 0a228efc..17220c89 100644--- a/src/language.rs+++ b/src/language.rs@@ -61,13 +61,13 @@ pub fn parse_literal(raw: &str) -> Label {// Bare IRI or unquoted local name — no language tag.return Label::new(s.to_string(), None);}- if let Some(close) = s.rfind('"') {- if close > 0 {- let value = unescape(&s[1..close]);- let suffix = &s[close + 1..];- let lang = suffix.strip_prefix('@').map(|l| l.to_string());- return Label::new(value, lang);- }+ if let Some(close) = s.rfind('"')+ && close > 0+ {+ let value = unescape(&s[1..close]);+ let suffix = &s[close + 1..];+ let lang = suffix.strip_prefix('@').map(|l| l.to_string());+ return Label::new(value, lang);}// Degenerate input (e.g. a lone `"`). Fall back to a best-effort strip.Label::new(s.trim_matches('"').to_string(), None)