🐛 fix: コンパイルエラーを修正

主な修正内容:
- ArrayBox/RegexBox/JSONBoxで`push`メソッドの戻り値を適切に処理
- BufferBoxのインポートパスを修正(buffer::BufferBox)
- StreamBoxでArrayBoxを正しくインポート
- HTTPClientBoxをスタブ実装に変更(reqwest依存を一時的に無効化)

テストプログラムも追加:
- test_array_box_simple.nyash: ArrayBoxの基本テスト
- test_new_boxes.nyash: 全Box実装の統合テスト

NOTE: HTTPサポートは現在OpenSSL/pkg-config依存のため一時的に無効化。
将来的にはrustls等の純Rust実装への移行を検討。

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-10 13:18:21 +09:00
parent 750543be7c
commit 44049835d1
10 changed files with 242 additions and 111 deletions

View File

@ -59,7 +59,7 @@ impl RegexBox {
let array = ArrayBox::new();
for mat in self.regex.find_iter(&text_str) {
array.push(Box::new(StringBox::new(mat.as_str())));
let _ = array.push(Box::new(StringBox::new(mat.as_str())));
}
Box::new(array)
@ -79,7 +79,7 @@ impl RegexBox {
let array = ArrayBox::new();
for part in self.regex.split(&text_str) {
array.push(Box::new(StringBox::new(part)));
let _ = array.push(Box::new(StringBox::new(part)));
}
Box::new(array)