Skip to content

Commit 4395b7e

Browse files
swallezrusscam
authored andcommitted
Fix compilation warning
1 parent c2a7dae commit 4395b7e

File tree

1 file changed

+1
-1
lines changed
  • api_generator/src/generator/code_gen

1 file changed

+1
-1
lines changed

api_generator/src/generator/code_gen/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl GetPath for syn::Ty {
137137
fn get_path(&self) -> &syn::Path {
138138
match *self {
139139
syn::Ty::Path(_, ref p) => &p,
140-
ref p => panic!(format!("Expected syn::Ty::Path, but found {:?}", p)),
140+
ref p => panic!("Expected syn::Ty::Path, but found {:?}", p),
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)