could not compile mdblog
1024chen opened this issue · 2 comments
1024chen commented
I compile it on centos7.9 with errors:
error[E0432]: unresolved import `tera::CtxThreadSafe`
--> /root/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/mdblog-0.20.2/src/lib.rs:27:21
|
27 | use tera::{Context, CtxThreadSafe, Tera};
| ^^^^^^^^^^^^^ no `CtxThreadSafe` in the root
error[E0107]: this struct takes 0 generic arguments but 1 generic argument was supplied
--> /root/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/mdblog-0.20.2/src/lib.rs:488:42
|
488 | fn get_base_context(&self) -> Result<Context<CtxThreadSafe>> {
| ^^^^^^^--------------- help: remove these generics
| |
| expected 0 generic arguments
|
1024chen commented
and the rust version is 1.56.1
FuGangqiang commented
oh, I reproduced the bug which is caused by tera
version update,
wait a minute, I will fix it.