Skip to content

Commit

Permalink
formatted files using cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArberSephirotheca committed Sep 2, 2022
1 parent fac1ab9 commit 1f69945
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/ftp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

//! Example for initiating a ftp backend.

use std::env;
use anyhow::Result;
use log::info;
use opendal::services::ftp;
use opendal::services::ftp::Builder;
use opendal::Operator;
use std::env;

#[tokio::main]
async fn main() -> Result<()> {
Expand Down
10 changes: 5 additions & 5 deletions src/services/ftp/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ impl Builder {

/// set tls for ftp backend.
pub fn tls(&mut self, tls: &str) -> &mut Self {
self.tls = if tls.is_empty(){
self.tls = if tls.is_empty() {
Some("false".to_string())
}else{
} else {
Some(tls.to_string())
};

Expand Down Expand Up @@ -203,10 +203,10 @@ impl Builder {

let tls = match &self.tls {
None => false,
Some(v) =>{
if v == "true"{
Some(v) => {
if v == "true" {
true
}else{
} else {
false
}
}
Expand Down

0 comments on commit 1f69945

Please sign in to comment.