mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
explicityly print the internal error from DispatchError
This commit is contained in:
@ -23,4 +23,5 @@ similar = "1.2.2"
|
||||
dialoguer = "0.8.0"
|
||||
toml = "0.5.8"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
pathdiff = "0.2.0"
|
||||
pathdiff = "0.2.0"
|
||||
itertools = "0.10"
|
@ -1,5 +1,6 @@
|
||||
use crate::proto::proto_info::{CrateProtoInfo, ProtoFile};
|
||||
use crate::util::{get_tera, read_file};
|
||||
use itertools::Itertools;
|
||||
use std::fs::OpenOptions;
|
||||
use std::io::Write;
|
||||
use tera::Context;
|
||||
@ -13,6 +14,7 @@ pub struct ProtobufDeriveMeta {
|
||||
#[allow(dead_code)]
|
||||
impl ProtobufDeriveMeta {
|
||||
pub fn new(structs: Vec<String>, enums: Vec<String>) -> Self {
|
||||
let enums: Vec<_> = enums.into_iter().unique().collect();
|
||||
return ProtobufDeriveMeta {
|
||||
context: Context::new(),
|
||||
structs,
|
||||
|
Reference in New Issue
Block a user