mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 11:56:38 +00:00
feat: consolidate AI rules into unified AGENTS.md (#501)
- Merge all AI rules from .rules.md, .cursorrules, and CLAUDE.md into AGENTS.md - Add competitor keyword prohibition rules (minio, ceph, swift, etc.) - Simplify rules by removing overly detailed code examples - Integrate new development principles as highest priority - Remove old tool-specific rule files - Fix clippy warnings for format string improvements
This commit is contained in:
@@ -1007,7 +1007,7 @@ impl NodeScanner {
|
||||
let object_size = self.estimate_object_size(&entry_path).await;
|
||||
|
||||
let entry = ScanResultEntry {
|
||||
object_path: format!("{}/{}", bucket_name, object_name),
|
||||
object_path: format!("{bucket_name}/{object_name}"),
|
||||
bucket_name: bucket_name.to_string(),
|
||||
object_size,
|
||||
is_healthy: true, // assume most objects are healthy
|
||||
@@ -1047,7 +1047,7 @@ impl NodeScanner {
|
||||
// simulate some scan results
|
||||
for i in 0..5 {
|
||||
let entry = ScanResultEntry {
|
||||
object_path: format!("/fallback-bucket/object_{}", i),
|
||||
object_path: format!("/fallback-bucket/object_{i}"),
|
||||
bucket_name: "fallback-bucket".to_string(),
|
||||
object_size: 1024 * (i + 1),
|
||||
is_healthy: true,
|
||||
|
||||
Reference in New Issue
Block a user