File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ mod global_id {
93
93
94
94
impl GlobalId {
95
95
/// Extracts the Crate info
96
- pub fn get_crate ( & self ) -> String {
96
+ pub fn krate ( & self ) -> String {
97
97
match self {
98
98
GlobalId :: Concrete ( concrete_id) | GlobalId :: Projector ( concrete_id) => {
99
99
concrete_id. def_id . def_id . krate . clone ( )
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ use hax_types::engine_api::File;
8
8
9
9
use pretty:: { DocAllocator , DocBuilder } ;
10
10
11
- fn get_crate_name ( items : & Vec < Item > ) -> String {
11
+ fn krate_name ( items : & Vec < Item > ) -> String {
12
12
let head_item = items. get ( 0 ) . unwrap ( ) ;
13
- head_item. ident . get_crate ( )
13
+ head_item. ident . krate ( )
14
14
}
15
15
16
16
fn main ( ) {
@@ -29,7 +29,7 @@ fn main() {
29
29
panic ! ( )
30
30
} ;
31
31
32
- let krate = get_crate_name ( & items) ;
32
+ let krate = krate_name ( & items) ;
33
33
34
34
// For now, the main function always calls the Lean backend
35
35
let allocator = Allocator :: new ( Lean ) ;
You can’t perform that action at this time.
0 commit comments