Skip to content

Commit 8aab0e7

Browse files
committed
fix: fixup
1 parent 9227e50 commit 8aab0e7

5 files changed

Lines changed: 7 additions & 17 deletions

File tree

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ lint:
2424

2525
fmt:
2626
cargo fmt
27-
cargo fix --allow-dirty --allow-stageds
27+
cargo fix --allow-dirty --allow-staged
2828

2929
publish:
3030
cargo release

page/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<li><h2>Opensource Contributions Meetup #0</h2><p>In this meetup we will build teams to contribute to or create opensource software, you will get support in doing so</p><div><h3>Address</h3><p>Barfüsserplatz 6</p><p>Basel</p><p>4051</p><p>Switzerland</p><p>Level 4 - Optravis Headquarter</p></div><div><h3>Sponsor</h3><p>Optravic LLC</p><a href="http://optravis.com">http://optravis.com</a><p></p></div><div><h1>Opensource Contribution Meetup</h1>
1+
<h2>Opensource Contributions Meetup #0</h2><p>In this meetup we will build teams to contribute to or create opensource software, you will get support in doing so</p><div><h3>Address</h3><p>Barfüsserplatz 6</p><p>Basel</p><p>4051</p><p>Switzerland</p><p>Level 4 - Optravis Headquarter</p></div><div><h3>Sponsor</h3><p>Optravic LLC</p><a href="http://optravis.com">http://optravis.com</a><p></p></div><div><h1>Opensource Contribution Meetup</h1>
22
<p>Welcome to the first Rust Basel meetup focused on open source contributions!</p>
33
<h3>Teambuilding</h3>
44
<p>Build a team of two or three people.
@@ -50,4 +50,4 @@ <h4>Repositories</h4>
5050
<li><a href="https://github.com/ironcalc/IronCalc">https://github.com/ironcalc/IronCalc</a></li>
5151
<li><a href="https://github.com/rust-basel/cli">https://github.com/rust-basel/cli</a></li>
5252
</ul>
53-
</div></li>
53+
</div>

src/main.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ fn command_as_vec() -> Vec<&'static str> {
4141
#[argh(subcommand, name = "admin")]
4242
struct AdminCommand {}
4343

44-
#[derive(FromArgs, PartialEq, Debug)]
45-
/// Find the featured jobs.
46-
#[argh(subcommand, name = "init")]
47-
struct InitCommand {}
48-
4944
#[derive(FromArgs, PartialEq, Debug)]
5045
/// Find the featured jobs.
5146
#[argh(subcommand, name = "job")]
@@ -65,10 +60,7 @@ fn main() {
6560
let basel: Basel = argh::from_env();
6661
match basel.commands {
6762
Some(c) => match_command(c),
68-
None => {
69-
inquire();
70-
return;
71-
}
63+
None => inquire(),
7264
}
7365
}
7466

src/meetups/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::default;
2-
31
use maud::Markup;
42
use serde::{Deserialize, Serialize};
53

src/meetups/website.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ pub fn build() {
1818

1919
let html = html! {
2020
@for h in &meetups_htmls {
21-
li { (h.clone()) }
21+
(h.clone())
2222
}
2323
};
2424

25-
let _dir = fs::create_dir_all("page").unwrap();
25+
fs::create_dir_all("page").unwrap();
2626

2727
let mut html_file = fs::OpenOptions::new()
2828
.write(true)
2929
.truncate(true)
3030
.create(true)
3131
.open("page/index.html")
3232
.unwrap();
33-
html_file.write(html.into_string().as_bytes()).unwrap();
33+
html_file.write_all(html.into_string().as_bytes()).unwrap();
3434
}
3535

3636
fn single_markdown(meetup: Meetup, markdown: (String, String)) -> maud::Markup {

0 commit comments

Comments
 (0)