Skip to main content

max / balanced_breakfast

commands: 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: 751c826ea1e3f1ef3e9f310239e376968d11fe1f
Parent: 60fc35a
2 files changed, +2 insertions, -2 deletions
@@ -108,7 +108,7 @@ const BB_TAG_CONFIG: tagtree::TagConfig = tagtree::TagConfig {
108 108 fn validate_bookmark_tags(tags: &[String]) -> Result<(), ApiError> {
109 109 for tag in tags {
110 110 tagtree::validate_with(tag, &BB_TAG_CONFIG)
111 - .map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e.0)))?;
111 + .map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e)))?;
112 112 }
113 113 Ok(())
114 114 }
@@ -458,7 +458,7 @@ pub async fn set_feed_tags(
458 458 ) -> Result<(), ApiError> {
459 459 for tag in &tags {
460 460 tagtree::validate_with(tag, &BB_TAG_CONFIG)
461 - .map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e.0)))?;
461 + .map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e)))?;
462 462 }
463 463
464 464 let db = state.orchestrator.database();