You are working on the hyperswitch repository (Rust payment processing system).…
- User
You are working on the hyperswitch repository (Rust payment processing system).
REPOSITORY SETUP:
- Repository: juspay/hyperswitch
- Working directory: ./repos/hyperswitch_pool_6 (already cloned)
- Base commit: ee12d44c5f13d0612dde3b6b24a412f6ddd870c8
- Task ID: juspay__hyperswitch-9391
- Version: v1.117.0
TASK DESCRIPTION: Bug: [BUILD] Bump MSRV to 1.85
Superposition has dependencies on the
askamacrate, which now requires a minimum Rust version of 1.81. Our current setup is still on 1.80, so builds fail until we upgrade the toolchain.DETAILED CONTEXT & HINTS:
Type of Change
- Bugfix
- New feature
- Enhancement
- Refactoring
- Dependency updates
- Documentation
- CI/CD
Description
This PR bumps the Minimum Supported Rust Version (MSRV) from Rust 1.80 to 1.85. Clippy Warning Fixes: 1. Replace repeat().take() with repeat_n() - More concise iterator creation 2. Replace map_or(true, ...) with is_none_or(...) - Modern idiomatic Option handling
Additional Changes
- This PR modifies the API contract
- This PR modifies the database schema
- This PR modifies application configuration/environment variables
Motivation and Context
Superposition has dependencies on the
askamacrate, which now requires a minimum Rust version of 1.81. Our current setup is still on 1.80. Bumping up the MSRV to 1.85 should solve this issue.How did you test it?
N/A
Checklist
- I formatted the code
cargo +nightly fmt --all - I addressed lints thrown by
cargo clippy
Assistant
I'll help you bump the MSRV from 1.80 to 1.85 in the hyperswitch repository. Let me start by creating a plan and examining the relevant files.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.