Skip to content

Commit 56956f6

Browse files
committed
feat: thank sponsors
1 parent 1c3fdf5 commit 56956f6

File tree

1 file changed

+8
-2
lines changed
  • src/alejandra_cli/src/ads

1 file changed

+8
-2
lines changed

src/alejandra_cli/src/ads/mod.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rand::rngs::OsRng;
55
pub(crate) fn random_ad() -> String {
66
let ads = [
77
// 90% distributed proportional to total past and present contributions
8-
// (0.9001, sponsor_benefits as fn() -> String),
8+
(0.9001, sponsor_benefits as fn() -> String),
99
// 10% is reserved for everything else
1010
(0.0333, contributor_thanks as fn() -> String),
1111
(0.0333, please_sponsor as fn() -> String),
@@ -22,7 +22,13 @@ fn sponsor_benefits() -> String {
2222
Company { ad: &'a str },
2323
}
2424

25-
let sponsors = [];
25+
let sponsors = [
26+
// Proportional to total past and present contributions
27+
(0.1247, Sponsor::Individual { name: "GuangTao Zhang" }),
28+
(0.1468, Sponsor::Individual { name: "Fabio Leimgruber" }),
29+
(0.2495, Sponsor::Individual { name: "Raphael Megzari" }),
30+
(0.4790, Sponsor::Individual { name: "Daniel Salazar" }),
31+
];
2632

2733
match random_weighted_choice(&sponsors[..]) {
2834
Sponsor::Company { ad } => {

0 commit comments

Comments
 (0)