Compare commits

...

2 commits

Author SHA1 Message Date
614e721b91 test: ignore use of expect in tests creating temp fs
All checks were successful
Rust / build (map[name:nightly]) (push) Successful in 6m51s
Rust / build (map[name:stable]) (push) Successful in 10m44s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 3m6s
2024-11-21 21:40:43 +00:00
Renovate Bot
0c8566a4a0 chore(deps): update rust crate bon to v3
All checks were successful
Rust / build (map[name:stable]) (push) Successful in 10m47s
Rust / build (map[name:nightly]) (push) Successful in 11m13s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 3m15s
2024-11-21 21:40:38 +00:00
5 changed files with 20 additions and 7 deletions

20
Cargo.lock generated
View file

@ -322,9 +322,9 @@ dependencies = [
[[package]]
name = "bon"
version = "2.3.0"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97493a391b4b18ee918675fb8663e53646fd09321c58b46afa04e8ce2499c869"
checksum = "a636f83af97c6946f3f5cf5c268ec02375bf5efd371110292dfd57961f57a509"
dependencies = [
"bon-macros",
"rustversion",
@ -332,14 +332,16 @@ dependencies = [
[[package]]
name = "bon-macros"
version = "2.3.0"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a2af3eac944c12cdf4423eab70d310da0a8e5851a18ffb192c0a5e3f7ae1663"
checksum = "a7eaf1bfaa5b8d512abfd36d0c432591fef139d3de9ee54f1f839ea109d70d33"
dependencies = [
"darling",
"ident_case",
"prettyplease",
"proc-macro2",
"quote",
"rustversion",
"syn",
]
@ -3408,6 +3410,16 @@ dependencies = [
"yansi",
]
[[package]]
name = "prettyplease"
version = "0.2.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033"
dependencies = [
"proc-macro2",
"syn",
]
[[package]]
name = "proc-macro-crate"
version = "3.2.0"

View file

@ -81,7 +81,7 @@ time = "0.3"
standardwebhooks = "1.0"
# boilerplate
bon = "2.0"
bon = "3.0"
derive_more = { version = "1.0.0-beta", features = [
"as_ref",
"constructor",

View file

@ -153,6 +153,7 @@ pub fn a_commit_sha() -> Sha {
}
pub fn a_filesystem() -> kxio::fs::TempFileSystem {
#[allow(clippy::expect_used)]
kxio::fs::temp().expect("temp fs")
}

View file

@ -6,6 +6,7 @@ use crate::alerts::{AlertsActor, History};
//
pub fn a_filesystem() -> kxio::fs::TempFileSystem {
#[allow(clippy::expect_used)]
kxio::fs::temp().expect("temp fs")
}

View file

@ -192,8 +192,7 @@ pub struct ForgeState {
pub repos: BTreeMap<RepoAlias, RepoState>,
}
#[bon::builder]
#[derive(Clone, Debug, PartialEq, Eq)]
#[derive(bon::Builder, Clone, Debug, PartialEq, Eq)]
pub struct RepoMessage {
text: String,
style: Style,