Skip to main content

max / audiofiles

tags: adapt to tagtree TagError enum TagError is now an enum; use its Display instead of the removed .0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-11 01:50 UTC
Commit: 849342656fb0c604e866921660a497b17492b9c9
Parent: 1741cbb
1 file changed, +1 insertion, -1 deletion
@@ -18,7 +18,7 @@ const TAG_CONFIG: tagtree::TagConfig = tagtree::TagConfig {
18 18 /// - No spaces, no consecutive dots, no leading/trailing dots
19 19 /// - Max 5 levels (4 dots), max 100 chars
20 20 pub fn validate_tag(tag: &str) -> Result<()> {
21 - tagtree::validate_with(tag, &TAG_CONFIG).map_err(|e| CoreError::TagInvalid(e.0))
21 + tagtree::validate_with(tag, &TAG_CONFIG).map_err(|e| CoreError::TagInvalid(e.to_string()))
22 22 }
23 23
24 24 /// Add a tag to a sample. Validates format first. Idempotent.