Skip to content

Commit 6d46912

Browse files
committed
more formatting fixes
1 parent b7ba933 commit 6d46912

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

core-c-bridge/src/envconfig.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn parse_config_source(
133133
if !path.is_null() {
134134
match unsafe { CStr::from_ptr(path) }.to_str() {
135135
Ok(path_str) => Ok(Some(CoreDataSource::Path(path_str.to_string()))),
136-
Err(e) => Err(format!("Invalid path UTF-8: {}", e)),
136+
Err(e) => Err(format!("Invalid path UTF-8: {e}")),
137137
}
138138
} else if !data.data.is_null() && data.size > 0 {
139139
Ok(Some(CoreDataSource::Data(data.to_vec())))
@@ -148,11 +148,11 @@ fn parse_env_vars(env_vars: ByteArrayRef) -> Result<Option<HashMap<String, Strin
148148
}
149149

150150
let env_json = std::str::from_utf8(env_vars.to_slice())
151-
.map_err(|e| format!("Invalid env vars UTF-8: {}", e))?;
151+
.map_err(|e| format!("Invalid env vars UTF-8: {e}"))?;
152152

153153
serde_json::from_str(env_json)
154154
.map(Some)
155-
.map_err(|e| format!("Invalid env vars JSON: {}", e))
155+
.map_err(|e| format!("Invalid env vars JSON: {e}"))
156156
}
157157

158158
fn send_result<T: Serialize>(
@@ -167,7 +167,7 @@ fn send_result<T: Serialize>(
167167
unsafe { callback(user_data, result.into_raw(), std::ptr::null()) };
168168
}
169169
Err(e) => {
170-
let err = ByteArray::from_utf8(format!("Failed to serialize: {}", e));
170+
let err = ByteArray::from_utf8(format!("Failed to serialize: {e}"));
171171
unsafe { callback(user_data, std::ptr::null(), err.into_raw()) };
172172
}
173173
},
@@ -224,7 +224,7 @@ pub extern "C" fn temporal_core_client_config_profile_load(
224224
let profile_name = if !profile.is_null() {
225225
match unsafe { CStr::from_ptr(profile) }.to_str() {
226226
Ok(s) => Some(s.to_string()),
227-
Err(e) => return Err(format!("Invalid profile UTF-8: {}", e)),
227+
Err(e) => return Err(format!("Invalid profile UTF-8: {e}")),
228228
}
229229
} else {
230230
None

0 commit comments

Comments
 (0)