Commit 9f10e18 1 parent a3e322d commit 9f10e18 Copy full SHA for 9f10e18
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ readme = "README.md"
9
9
repository = " https://github.com/lu-zero/cargo-c"
10
10
categories = [" command-line-utilities" , " development-tools::cargo-plugins" ]
11
11
keywords = [" cargo" , " cdylib" ]
12
- rust-version = " 1.75 "
12
+ rust-version = " 1.78 "
13
13
14
14
[[bin ]]
15
15
name = " cargo-capi"
Original file line number Diff line number Diff line change @@ -129,15 +129,15 @@ impl PkgConfig {
129
129
) -> Self {
130
130
let mut pc = PkgConfig :: new ( name, capi_config) ;
131
131
132
- pc. prefix = install_paths. prefix . clone ( ) ;
132
+ pc. prefix . clone_from ( & install_paths. prefix ) ;
133
133
// TODO: support exec_prefix
134
134
if args. contains_id ( "includedir" ) {
135
135
if let Ok ( suffix) = install_paths. includedir . strip_prefix ( & pc. prefix ) {
136
136
let mut includedir = PathBuf :: from ( "${prefix}" ) ;
137
137
includedir. push ( suffix) ;
138
138
pc. includedir = includedir;
139
139
} else {
140
- pc. includedir = install_paths. includedir . clone ( ) ;
140
+ pc. includedir . clone_from ( & install_paths. includedir ) ;
141
141
}
142
142
}
143
143
if args. contains_id ( "libdir" ) {
@@ -146,7 +146,7 @@ impl PkgConfig {
146
146
libdir. push ( suffix) ;
147
147
pc. libdir = libdir;
148
148
} else {
149
- pc. libdir = install_paths. libdir . clone ( ) ;
149
+ pc. libdir . clone_from ( & install_paths. libdir ) ;
150
150
}
151
151
}
152
152
pc
@@ -164,7 +164,7 @@ impl PkgConfig {
164
164
}
165
165
166
166
pub fn set_description < S : AsRef < str > > ( & mut self , descr : S ) -> & mut Self {
167
- self . description = descr. as_ref ( ) . to_owned ( ) ;
167
+ descr. as_ref ( ) . clone_into ( & mut self . description ) ;
168
168
self
169
169
}
170
170
You can’t perform that action at this time.
0 commit comments