style: use is_none_or instead of map_or per clippy warnings rust >= 1.85.0 (#1314)

This commit is contained in:
Kalvin C
2025-02-20 09:59:13 -08:00
committed by GitHub
parent 3af2bf869d
commit 6881953953
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ pub trait Router: Send + Sync + 'static {
|| arguments
.get(&arg.name)
.and_then(Value::as_str)
.map_or(true, str::is_empty))
.is_none_or(str::is_empty))
{
return Err(RouterError::InvalidParams(format!(
"Missing required argument: '{}'",