Skip to content

Commit 37a3584

Browse files
committed
chore: replace regex with regex-lite to reduce dependencies
1 parent 91284c9 commit 37a3584

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

postgresql_extensions/src/model.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ mod tests {
249249
#[cfg(target_os = "linux")]
250250
#[tokio::test]
251251
async fn test_installed_configuration_io() -> Result<()> {
252-
let temp_file = tempfile::NamedTempFile::new()?;
252+
let temp_file = tempfile::NamedTempFile::new().map_err(|error| IoError(error.to_string()))?;
253253
let file = temp_file.as_ref();
254254
let extensions = vec![InstalledExtension::new(
255255
"namespace",
@@ -261,7 +261,9 @@ mod tests {
261261
expected_configuration.write(file).await?;
262262
let configuration = InstalledConfiguration::read(file).await?;
263263
assert_eq!(expected_configuration, configuration);
264-
tokio::fs::remove_file(file).await?;
264+
tokio::fs::remove_file(file)
265+
.await
266+
.map_err(|error| IoError(error.to_string()))?;
265267
Ok(())
266268
}
267269

0 commit comments

Comments
 (0)