feat: remove nightly features
Some checks failed
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build encountered an error

This commit was merged in pull request #89.
This commit is contained in:
2026-02-02 14:35:43 +01:00
parent aef7b65e0c
commit f90dc1e8d5
5 changed files with 757 additions and 700 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "gitnow"
description = "Git Now is a utility for easily navigating git projects from common upstream providers. Search, Download, and Enter projects as quickly as you can type."
edition = "2021"
edition = "2024"
readme = "../../README.md"
repository = "https://github.com/kjuulh/gitnow"
homepage = "https://gitnow-client.prod.kjuulh.app"

View File

@@ -3,18 +3,16 @@ use std::time::Duration;
use crossterm::event::{EventStream, KeyCode};
use futures::{FutureExt, StreamExt};
use ratatui::{
crossterm,
TerminalOptions, Viewport, crossterm,
prelude::*,
widgets::{Block, Padding},
TerminalOptions, Viewport,
};
use crate::components::BatchCommand;
use super::{
create_dispatch,
Dispatch, IntoCommand, Msg, Receiver, create_dispatch,
spinner::{Spinner, SpinnerState},
Dispatch, IntoCommand, Msg, Receiver,
};
pub struct InlineCommand {
@@ -120,7 +118,7 @@ impl InlineCommand {
return Ok(true);
}
let mut cmd = self.update_state(&msg);
let mut cmd = self.update_state(msg);
loop {
let msg = cmd.into_command().execute(dispatch);
@@ -128,7 +126,7 @@ impl InlineCommand {
match msg {
Some(Msg::Quit) => return Ok(true),
Some(msg) => {
cmd = self.update_state(&msg);
cmd = self.update_state(msg);
}
None => break,
}
@@ -163,7 +161,7 @@ impl InlineCommand {
None
}
fn update_state(&mut self, msg: &Msg) -> impl IntoCommand {
fn update_state(&mut self, msg: Msg) -> impl IntoCommand {
tracing::debug!("handling message: {:?}", msg);
let mut batch = BatchCommand::default();
@@ -178,7 +176,7 @@ impl InlineCommand {
}
}
batch.with(self.spinner.update(msg));
batch.with(self.spinner.update(&msg));
batch.into_command()
}

View File

@@ -148,7 +148,7 @@ impl CacheDuration {
hours,
minutes,
} => Some(
std::time::Duration::from_days(*days)
std::time::Duration::from_hours(*days * 24)
+ std::time::Duration::from_hours(*hours)
+ std::time::Duration::from_mins(*minutes),
),

View File

@@ -1,5 +1,3 @@
#![feature(duration_constructors)]
use std::path::PathBuf;
use anyhow::Context;