File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
[toolchain ]
2
- channel = " 1.77 .0"
2
+ channel = " 1.79 .0"
3
3
profile = " default"
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ use core::ffi::{c_char, c_uint};
4
4
#[ cfg( feature = "std" ) ]
5
5
extern crate std;
6
6
7
+ #[ cfg( feature = "std" ) ]
8
+ use std:: fmt:: Display ;
9
+
7
10
#[ repr( C ) ]
8
11
pub struct ada_url {
9
12
_unused : [ u8 ; 0 ] ,
@@ -42,10 +45,10 @@ impl AsRef<str> for ada_owned_string {
42
45
}
43
46
44
47
#[ cfg( feature = "std" ) ]
45
- impl ToString for ada_owned_string {
46
- fn to_string ( & self ) -> std :: string :: String {
47
- self . as_ref ( ) . to_owned ( )
48
- }
48
+ impl Display for ada_owned_string {
49
+ fn fmt ( & self , f : & mut core :: fmt :: Formatter < ' _ > ) -> core :: fmt :: Result {
50
+ write ! ( f , "{}" , self . as_ref( ) . to_owned( ) )
51
+ }
49
52
}
50
53
51
54
impl Drop for ada_owned_string {
You can’t perform that action at this time.
0 commit comments