fix clippy lints from toolchain update

This commit is contained in:
Josh Junon 2024-04-04 12:37:52 +02:00
parent 977d9096be
commit 4d78be2d95
No known key found for this signature in database
8 changed files with 3 additions and 17 deletions

View File

@ -2,7 +2,6 @@
name = "gitbutler-core"
version = "0.0.0"
edition = "2021"
rust-version = "1.57"
authors = ["GitButler <gitbutler@gitbutler.com>"]
publish = false

View File

@ -1,6 +1,5 @@
use std::borrow::Cow;
pub use bstr;
use bstr::{BStr, BString, ByteSlice};
use super::{Scheme, Url};

View File

@ -650,16 +650,6 @@ pub enum LogUntil {
End,
}
#[derive(Debug, Clone, serde::Serialize)]
struct AskpassPromptPushContext {
branch_id: Option<BranchId>,
}
#[derive(Debug, Clone, serde::Serialize)]
struct AskpassPromptFetchContext {
action: String,
}
async fn handle_git_prompt_push(
prompt: String,
askpass: Option<(AskpassBroker, Option<BranchId>)>,

View File

@ -91,7 +91,7 @@ impl Storage {
.ok_or(Error::NotFound)?;
if let Some(title) = &update_request.title {
project.title = title.clone();
project.title.clone_from(title);
}
if let Some(description) = &update_request.description {

View File

@ -1,6 +1,6 @@
use std::{env, fs, path::Path};
use ssh2::{self, CheckResult, KnownHostFileKind};
use ssh2::{CheckResult, KnownHostFileKind};
use crate::git;

View File

@ -78,7 +78,7 @@ impl RefSpec {
refspec.destination = Some(second.to_owned());
}
} else {
refspec.destination = refspec.source.clone();
refspec.destination.clone_from(&refspec.source);
}
if split.next().is_some() {

View File

@ -2,7 +2,6 @@
name = "gitbutler-tauri"
version = "0.0.0"
edition = "2021"
rust-version = "1.57"
authors = ["GitButler <gitbutler@gitbutler.com>"]
publish = false

View File

@ -4,7 +4,6 @@ use async_trait::async_trait;
use chrono::NaiveDateTime;
use reqwest::{header::CONTENT_TYPE, Client as HttpClient};
use serde::Serialize;
use serde_json;
use tracing::instrument;
const API_ENDPOINT: &str = "https://eu.posthog.com/batch/";