Skip to content

Commit 5b9847a

Browse files
authored
fix warnings (#1193)
1 parent 2bb594e commit 5b9847a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pgml-dashboard/src/api/cms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl Collection {
7777
path = path.join("README");
7878
}
7979

80-
let path = self.root_dir.join(path.with_extension("md"));
80+
let path = self.root_dir.join(format!("{}.md", path.to_string_lossy()));
8181

8282
self.render(&path, cluster, self).await
8383
}

pgml-dashboard/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ mod test {
290290
#[rocket::async_test]
291291
async fn test_blogs() {
292292
let client = Client::tracked(rocket().await).await.unwrap();
293-
let response = client.get("/blog/postgresml-raises-4.7M-to-launch-serverless-ai-application-databases-based-on-postgres").dispatch().await;
293+
let response = client.get("/blog/postgresml-raises-usd4.7m-to-launch-serverless-ai-application-databases-based-on-postgres").dispatch().await;
294294
assert_eq!(response.status().code, 200);
295295
}
296296
}

0 commit comments

Comments
 (0)