Skip to content

Commit 39007df

Browse files
committed
replace path_ident with ident.into()
1 parent c70ecdf commit 39007df

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

diesel_codegen/src/ast_builder.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
use syn::{Ident, Ty, Path, PathSegment};
1+
use syn::{Ident, Ty, Path};
22

33
pub fn ty_ident(ident: Ident) -> Ty {
4-
ty_path(path_ident(ident))
4+
ty_path(ident.into())
55
}
66

77
pub fn ty_path(path: Path) -> Ty {
88
Ty::Path(None, path)
99
}
10-
11-
pub fn path_ident(ident: Ident) -> Path {
12-
Path {
13-
global: false,
14-
segments: vec![PathSegment::from(ident)],
15-
}
16-
}

0 commit comments

Comments
 (0)