mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-03 15:33:13 +03:00
satisfy clippy
This commit is contained in:
parent
8795a9dd2a
commit
94f257e8b1
@ -101,7 +101,6 @@ fn from_key(key: &keys::PrivateKey) -> CredentialsCallback {
|
||||
fn from_token(token: &str) -> CredentialsCallback {
|
||||
Box::new(move |url, _username_from_url, _allowed_types| {
|
||||
tracing::debug!("authenticating with {} using github token", url);
|
||||
dbg!(token, url);
|
||||
git2::Cred::userpass_plaintext("git", token)
|
||||
})
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![forbid(unsafe_code, dead_code)]
|
||||
#![deny(
|
||||
clippy::all,
|
||||
clippy::perf,
|
||||
|
@ -468,7 +468,7 @@ impl Controller {
|
||||
self.with_lock(project_id, || {
|
||||
self.with_verify_branch(project_id, |gb_repository, project_repository, user| {
|
||||
let credentials = git::credentials::Factory::new(
|
||||
&project_repository.project(),
|
||||
project_repository.project(),
|
||||
self.keys
|
||||
.get_or_create()
|
||||
.context("failed to get or create private key")?,
|
||||
|
Loading…
Reference in New Issue
Block a user