We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cbc493 commit 3d916a3Copy full SHA for 3d916a3
1 file changed
crates/lupus/src/engine.rs
@@ -104,13 +104,7 @@ impl Engine {
104
(Artifact::Text(text), ArtifactKind::Markup) => {
105
Ok(Artifact::Markup(data_into_markup(Data::String(text))?))
106
}
107
- (Artifact::Binary(bytes), ArtifactKind::Text) => {
108
- let text = String::from_utf8(bytes).map_err(|err| {
109
- ConvertError::InvalidConversion(format!("binary is not valid utf-8: {err}"))
110
- })?;
111
- Ok(Artifact::Text(text))
112
- }
113
- (artifact, target) => Err(ConvertError::WrongArtifact {
+ (artifact, target) => Err(ConvertError::WrongArtifact {
114
expected: target,
115
found: artifact.kind(),
116
}),
0 commit comments