11use cef_app:: SecurityConfig ;
22use godot:: classes:: ProjectSettings ;
3- use godot:: global:: PropertyHint ;
43use godot:: prelude:: * ;
4+ use godot:: register:: info:: PropertyHint ;
55use std:: path:: PathBuf ;
66
77const SETTING_DATA_PATH : & str = "godot_cef/storage/data_path" ;
@@ -171,10 +171,10 @@ fn register_string_setting(
171171 settings. set_as_basic ( & name_gstring, true ) ;
172172
173173 let property_info = vdict ! {
174- "name" : name_gstring. clone ( ) ,
175- "type" : VariantType :: STRING . ord( ) ,
176- "hint" : hint. ord( ) ,
177- "hint_string" : hint_string,
174+ "name" => & name_gstring,
175+ "type" => VariantType :: STRING . ord( ) ,
176+ "hint" => hint. ord( ) ,
177+ "hint_string" => hint_string,
178178 } ;
179179
180180 settings. add_property_info ( & property_info) ;
@@ -191,10 +191,10 @@ fn register_bool_setting(settings: &mut Gd<ProjectSettings>, name: &str, default
191191 settings. set_as_basic ( & name_gstring, true ) ;
192192
193193 let property_info = vdict ! {
194- "name" : name_gstring. clone ( ) ,
195- "type" : VariantType :: BOOL . ord( ) ,
196- "hint" : PropertyHint :: NONE . ord( ) ,
197- "hint_string" : "" ,
194+ "name" => & name_gstring,
195+ "type" => VariantType :: BOOL . ord( ) ,
196+ "hint" => PropertyHint :: NONE . ord( ) ,
197+ "hint_string" => "" ,
198198 } ;
199199
200200 settings. add_property_info ( & property_info) ;
@@ -217,10 +217,10 @@ fn register_int_setting(
217217 settings. set_as_basic ( & name_gstring, true ) ;
218218
219219 let property_info = vdict ! {
220- "name" : name_gstring. clone ( ) ,
221- "type" : VariantType :: INT . ord( ) ,
222- "hint" : hint. ord( ) ,
223- "hint_string" : hint_string,
220+ "name" => & name_gstring,
221+ "type" => VariantType :: INT . ord( ) ,
222+ "hint" => hint. ord( ) ,
223+ "hint_string" => hint_string,
224224 } ;
225225
226226 settings. add_property_info ( & property_info) ;
0 commit comments