mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-23 17:43:47 +03:00
fix clippy lints from toolchain update
This commit is contained in:
parent
977d9096be
commit
4d78be2d95
@ -2,7 +2,6 @@
|
||||
name = "gitbutler-core"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
rust-version = "1.57"
|
||||
authors = ["GitButler <gitbutler@gitbutler.com>"]
|
||||
publish = false
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
use std::borrow::Cow;
|
||||
|
||||
pub use bstr;
|
||||
use bstr::{BStr, BString, ByteSlice};
|
||||
|
||||
use super::{Scheme, Url};
|
||||
|
@ -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>)>,
|
||||
|
@ -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 {
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::{env, fs, path::Path};
|
||||
|
||||
use ssh2::{self, CheckResult, KnownHostFileKind};
|
||||
use ssh2::{CheckResult, KnownHostFileKind};
|
||||
|
||||
use crate::git;
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -2,7 +2,6 @@
|
||||
name = "gitbutler-tauri"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
rust-version = "1.57"
|
||||
authors = ["GitButler <gitbutler@gitbutler.com>"]
|
||||
publish = false
|
||||
|
||||
|
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user