Skip to content

Commit

Permalink
refactor: docs and format
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuwn committed Jul 24, 2022
1 parent 7f1c450 commit 667e9a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "sydney"
version = "0.1.8"
version = "0.1.9"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "Vim-like, Command-line Gemini Client"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Sydney is a Vim-like, command-line Gemini client.

[![GIF of Sydney in action](https://host.fuwn.me/3k5cmvhf24dx.gif)](https://host.fuwn.me/c2uvq9mqiccc.gif)
[![GIF of Sydney in action](https://host.fuwn.me/m3q9cny6pr5f.png)](https://host.fuwn.me/m3q9cny6pr5f.png)

Sydney has a beautiful, intuitive, and powerful command-line interface;
including:
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2022-07-23"
channel = "stable"
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
clippy::nursery,
clippy::pedantic
)]
#![feature(iter_advance_by)]
#![recursion_limit = "128"]

mod app;
Expand Down
12 changes: 4 additions & 8 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,10 @@ pub fn ui<B: tui::backend::Backend>(
text,
alt_text,
} => {
let mut span_list = vec![];

span_list.push(Span::styled(
"``` ",
Style::default().fg(Color::LightBlue),
));
span_list
.push(Span::from(alt_text.unwrap_or_else(|| "".to_string())));
let mut span_list = vec![
Span::styled("``` ", Style::default().fg(Color::LightBlue)),
Span::from(alt_text.unwrap_or_else(|| "".to_string())),
];

if text != "sydney_abc_123" {
span_list.push(Span::from(text));
Expand Down

0 comments on commit 667e9a9

Please sign in to comment.