MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-core/src/record/workflow/crdt/tokenize/rules.rs:182–209  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

180
181impl fmt::Display for TokenizeError {
182 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
183 match self {
184 TokenizeError::BinaryContent { reason } => {
185 write!(f, "binary content detected: {}", reason)
186 }
187 TokenizeError::LineTooLong {
188 line_number,
189 length,
190 max_length,
191 } => {
192 write!(
193 f,
194 "line {} is too long ({} bytes, max {})",
195 line_number, length, max_length
196 )
197 }
198 TokenizeError::InvalidUtf8 {
199 line_number,
200 offset,
201 } => {
202 write!(
203 f,
204 "invalid UTF-8 at line {}, offset {}",
205 line_number, offset
206 )
207 }
208 }
209 }
210}
211
212impl std::error::Error for TokenizeError {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected