Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix warnings#1193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
montanalow merged 1 commit intomasterfrommontana/tests
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionpgml-dashboard/src/api/cms.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -77,7 +77,7 @@ impl Collection {
path = path.join("README");
}

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

self.render(&path, cluster, self).await
}
Expand Down
2 changes: 1 addition & 1 deletionpgml-dashboard/src/main.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -292,7 +292,7 @@ mod test {
#[rocket::async_test]
async fn test_blogs() {
let client = Client::tracked(rocket().await).await.unwrap();
let response = client.get("/blog/postgresml-raises-4.7M-to-launch-serverless-ai-application-databases-based-on-postgres").dispatch().await;
let response = client.get("/blog/postgresml-raises-usd4.7m-to-launch-serverless-ai-application-databases-based-on-postgres").dispatch().await;
assert_eq!(response.status().code, 200);
}
}
7 changes: 3 additions & 4 deletionspgml-dashboard/src/utils/tabs.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,12 +18,11 @@ impl<'a> Tabs<'a> {
active: Option<&'a str>,
) -> anyhow::Result<Self> {
let default = match default {
Some(default) => default.clone(),
Some(default) => default,
_ => tabs
.get(0)
.ok_or(anyhow!("There must be at least one tab."))?
.name
.clone(),
.name,
};

let active = active
Expand All@@ -32,7 +31,7 @@ impl<'a> Tabs<'a> {
let just_name = found.map(|tab| tab.name);
just_name
})
.unwrap_or(default.clone());
.unwrap_or(default);

Ok(Tabs {
tabs,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp