MCPcopy Create free account
hub / github.com/archlinux/alpm / from

Method from

dev-scripts/src/error.rs:136–138  ·  view source on GitHub ↗

Converts a [`ParseError`] into an [`Error::Parser`].

(value: ParseError<&'a str, ContextError>)

Source from the content-addressed store, hash-verified

134impl<'a> From<ParseError<&'a str, ContextError>> for crate::error::Error {
135 /// Converts a [`ParseError`] into an [`Error::Parser`].
136 fn from(value: ParseError<&'a str, ContextError>) -> Self {
137 Self::Parser(value.to_string())
138 }
139}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected