mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 01:51:57 +03:00
fix clippy lints from toolchain update
This commit is contained in:
parent
977d9096be
commit
4d78be2d95
@ -2,7 +2,6 @@
|
|||||||
name = "gitbutler-core"
|
name = "gitbutler-core"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.57"
|
|
||||||
authors = ["GitButler <gitbutler@gitbutler.com>"]
|
authors = ["GitButler <gitbutler@gitbutler.com>"]
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
pub use bstr;
|
|
||||||
use bstr::{BStr, BString, ByteSlice};
|
use bstr::{BStr, BString, ByteSlice};
|
||||||
|
|
||||||
use super::{Scheme, Url};
|
use super::{Scheme, Url};
|
||||||
|
@ -650,16 +650,6 @@ pub enum LogUntil {
|
|||||||
End,
|
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(
|
async fn handle_git_prompt_push(
|
||||||
prompt: String,
|
prompt: String,
|
||||||
askpass: Option<(AskpassBroker, Option<BranchId>)>,
|
askpass: Option<(AskpassBroker, Option<BranchId>)>,
|
||||||
|
@ -91,7 +91,7 @@ impl Storage {
|
|||||||
.ok_or(Error::NotFound)?;
|
.ok_or(Error::NotFound)?;
|
||||||
|
|
||||||
if let Some(title) = &update_request.title {
|
if let Some(title) = &update_request.title {
|
||||||
project.title = title.clone();
|
project.title.clone_from(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(description) = &update_request.description {
|
if let Some(description) = &update_request.description {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use std::{env, fs, path::Path};
|
use std::{env, fs, path::Path};
|
||||||
|
|
||||||
use ssh2::{self, CheckResult, KnownHostFileKind};
|
use ssh2::{CheckResult, KnownHostFileKind};
|
||||||
|
|
||||||
use crate::git;
|
use crate::git;
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ impl RefSpec {
|
|||||||
refspec.destination = Some(second.to_owned());
|
refspec.destination = Some(second.to_owned());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
refspec.destination = refspec.source.clone();
|
refspec.destination.clone_from(&refspec.source);
|
||||||
}
|
}
|
||||||
|
|
||||||
if split.next().is_some() {
|
if split.next().is_some() {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
name = "gitbutler-tauri"
|
name = "gitbutler-tauri"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.57"
|
|
||||||
authors = ["GitButler <gitbutler@gitbutler.com>"]
|
authors = ["GitButler <gitbutler@gitbutler.com>"]
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ use async_trait::async_trait;
|
|||||||
use chrono::NaiveDateTime;
|
use chrono::NaiveDateTime;
|
||||||
use reqwest::{header::CONTENT_TYPE, Client as HttpClient};
|
use reqwest::{header::CONTENT_TYPE, Client as HttpClient};
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use serde_json;
|
|
||||||
use tracing::instrument;
|
use tracing::instrument;
|
||||||
|
|
||||||
const API_ENDPOINT: &str = "https://eu.posthog.com/batch/";
|
const API_ENDPOINT: &str = "https://eu.posthog.com/batch/";
|
||||||
|
Loading…
Reference in New Issue
Block a user