File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 9
9
#![ feature( macro_rules) ]
10
10
11
11
#![ warn( missing_doc) ]
12
- #![ allow( uppercase_variables) ]
12
+ #![ allow( uppercase_variables, non_snake_case_functions ) ]
13
13
14
14
extern crate libc;
15
15
@@ -1631,20 +1631,20 @@ impl<'l> RawState<'l> {
1631
1631
1632
1632
pub unsafe fn describe_ ( & mut self , idx : i32 , usestack : bool ) -> String {
1633
1633
match self . type_ ( idx) {
1634
- None => "" . to_owned ( ) ,
1634
+ None => "" . to_string ( ) ,
1635
1635
Some ( typ) => match typ {
1636
- Type :: Nil => "nil" . to_owned ( ) ,
1637
- Type :: Boolean => if self . toboolean ( idx) { "true" . to_owned ( ) }
1638
- else { "false" . to_owned ( ) } ,
1636
+ Type :: Nil => "nil" . to_string ( ) ,
1637
+ Type :: Boolean => if self . toboolean ( idx) { "true" . to_string ( ) }
1638
+ else { "false" . to_string ( ) } ,
1639
1639
Type :: Number => {
1640
1640
// Let Lua create the string instead of us
1641
1641
if usestack { self . pushvalue ( idx) ; } // copy the value
1642
- let s = self . tostring ( -1 ) . map ( |s| s. to_owned ( ) ) ;
1642
+ let s = self . tostring ( -1 ) . map ( |s| s. to_string ( ) ) ;
1643
1643
if usestack { self . pop ( 1 ) ; } // remove the copied value
1644
1644
s. unwrap_or_default ( ) // default will be ~""
1645
1645
}
1646
1646
Type :: String => {
1647
- self . tostring ( idx) . unwrap_or ( "<invalid utf8>" ) . to_owned ( )
1647
+ self . tostring ( idx) . unwrap_or ( "<invalid utf8>" ) . to_string ( )
1648
1648
}
1649
1649
Type :: LightUserdata |
1650
1650
Type :: Userdata |
You can’t perform that action at this time.
0 commit comments