- redis/error: Return
&'static strfromcode()instead of allocating aStringon every error - redis/error: Consolidate match arms in
message()using|to eliminate repeatedformat!calls - redis/error: Clone inner strings directly instead of going through
.to_string()indirection - redis/error: Add
#[inline]hints onerror_message(),message(),code(),error_response(),status_code() - redis/types: Use struct literal for
PerformanceConfiginstead of default + mutation - redis/types: Add
#[inline]onDerefimpl forRedisClient - callapi: Return
&'static strfromcode()instead of allocating aStringon every error - callapi: Add
#[inline]hints on error and response methods - callapi: Use
unwrap_or_elsewithto_owned()instead ofunwrap_orwithto_string() - middleware/utils: Compile UUID regex once via
once_cell::sync::Lazyinstead of per-request - middleware/utils: Accept
&strincalculate_metricsinstead of taking ownership ofStringargs - middleware/utils: Add
#[inline]onget_method()andget_headers() - middleware/incoming_request: Extract headers/method/path into locals before passing by reference
- prometheus: Use
unwrap_or_elsewithto_owned()inincoming_api!andtermination!macros - logger: Avoid unnecessary
.to_string()onconcat!macro result (already&'static str) - aws: Replace
.to_owned()on cloned response contents; useto_owned()overto_string()for&str - ErrorBody (redis, callapi): Add
#[serde(skip_serializing_if = "String::is_empty")]to skip empty fields during serialization
- macros:
measure_durationproc macro now preserves function attributes (#[allow(...)],#[cfg(...)], etc.) - redis/commands: Add explicit
RedisValuetype annotation onpipeline.all()andxaddcalls to resolve type inference - redis/commands: Use
.first()instead of.get(0)(Clippyfirstlint)
- aws: Use
aws_config::defaults(BehaviorVersion::latest())instead of deprecatedaws_config::from_env() - callapi: Extract
ErrorHandler<E>type alias for the boxed error handler function pointer - cloud_storage: Add
#[allow(clippy::should_implement_trait)]on deprecatedfrom_strmethod
- redis/types: Remove unused imports (
log::info,tracing::*,UnboundedReceiver,UnboundedSender)
- benchmarks: Add criterion benchmarks for serialization patterns (
serialization.rs) - benchmarks: Add criterion benchmarks for middleware path normalization (
utils.rs) - benchmarks: Add criterion benchmarks for Redis operation patterns (
redis_patterns.rs)