Skip to content

Conversation

@weisd
Copy link
Contributor

@weisd weisd commented Nov 10, 2025

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

Summary of Changes

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other impact:

Additional Notes


Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.

@houseme houseme requested a review from Copilot November 10, 2025 15:34
@loverustfs
Copy link
Contributor

These issues may be related.

#827
#815
#635

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors nested conditional logic in the directory scanning code to use Rust 2024's let-chains feature, improving code readability and maintainability.

  • Replaced nested if !dir_stack.is_empty() and if let Some(pop) = dir_stack.last() with a cleaner while let with let-chains syntax
  • Reduced indentation levels and improved code clarity
  • Maintained the same functional behavior while making the logic more explicit

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@loverustfs
Copy link
Contributor

#752

@loverustfs loverustfs merged commit 77a3489 into main Nov 10, 2025
20 checks passed
@loverustfs loverustfs deleted the fix/listobjects branch November 10, 2025 15:42
houseme added a commit that referenced this pull request Nov 11, 2025
…ypto

* 'main' of github.com:rustfs/rustfs:
  wip (#830)
  fix list object err (#831)
  fix (#828)
  feat(storage): refactor audit and notification with OperationHelper (#825)

# Conflicts:
#	Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants