chore: fix types for easy use with bin
This commit is contained in:
parent
21c93a5e4e
commit
6355835135
2 changed files with 4 additions and 2 deletions
|
@ -93,7 +93,7 @@ pub struct AddRepository<'a> {
|
||||||
/// html link to the repository
|
/// html link to the repository
|
||||||
pub html_link: &'a str,
|
pub html_link: &'a str,
|
||||||
/// repository topic tags
|
/// repository topic tags
|
||||||
pub tags: Option<Vec<&'a str>>,
|
pub tags: Option<Vec<String>>,
|
||||||
/// hostname of the forge instance: with scheme but remove trailing slash
|
/// hostname of the forge instance: with scheme but remove trailing slash
|
||||||
/// hostname can be derived from html_link also, but used to link to user's forge instance
|
/// hostname can be derived from html_link also, but used to link to user's forge instance
|
||||||
pub hostname: &'a str,
|
pub hostname: &'a str,
|
||||||
|
|
|
@ -63,10 +63,12 @@ async fn everything_works() {
|
||||||
let connection_options = ConnectionOptions::Fresh(Fresh { pool_options, url });
|
let connection_options = ConnectionOptions::Fresh(Fresh { pool_options, url });
|
||||||
let db = connection_options.connect().await.unwrap();
|
let db = connection_options.connect().await.unwrap();
|
||||||
|
|
||||||
|
let tags = TAGS.iter().map(|s| s.to_string()).collect();
|
||||||
|
|
||||||
let add_repo_msg = AddRepository {
|
let add_repo_msg = AddRepository {
|
||||||
html_link: HTML_REPO_URL,
|
html_link: HTML_REPO_URL,
|
||||||
name: REPO_NAME,
|
name: REPO_NAME,
|
||||||
tags: Some(TAGS.into()),
|
tags: Some(tags),
|
||||||
owner: USERNAME,
|
owner: USERNAME,
|
||||||
website: None,
|
website: None,
|
||||||
description: None,
|
description: None,
|
||||||
|
|
Loading…
Reference in a new issue