Switch over to using the render context in render calls.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
use std::path::Path;
|
||||
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::config::Config;
|
||||
use super::render_context::RenderContext;
|
||||
use crate::error::CustomError;
|
||||
use crate::intermediate::ICode;
|
||||
|
||||
@@ -15,16 +13,8 @@ pub(crate) struct RenderCode {
|
||||
contents: String,
|
||||
}
|
||||
|
||||
render!(
|
||||
RenderCode,
|
||||
ICode,
|
||||
original,
|
||||
_config,
|
||||
_output_directory,
|
||||
_output_file,
|
||||
{
|
||||
Ok(RenderCode {
|
||||
contents: original.contents.clone(),
|
||||
})
|
||||
}
|
||||
);
|
||||
render!(RenderCode, ICode, original, _render_context, {
|
||||
Ok(RenderCode {
|
||||
contents: original.contents.clone(),
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user