FuGangqiang/mdblog.rs

could not compile mdblog

Closed this issue · 2 comments

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
    |

and the rust version is 1.56.1

oh, I reproduced the bug which is caused by tera version update,
wait a minute, I will fix it.