improve gitignore files (#385)

* modified gitignore

* fixing gitignore

* reomving the himalaya.iml file

* applied cargo fmt

* fixed typo in .gitignore and removed an entry in it

* adding gitignore to cli/

* reducing .gitignore in cli to one line
This commit is contained in:
TornaxO7 2022-05-28 14:10:38 +02:00 committed by GitHub
parent 0696f36f05
commit bed5a3856b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 5 deletions

42
.gitignore vendored
View file

@ -1,10 +1,46 @@
# Cargo build directory # Cargo build directory
/target target/
debug/
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# Nix build directory # Nix build directory
/result result
/result-lib result-*
# Direnv # Direnv
/.envrc /.envrc
/.direnv /.direnv
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea/
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
## Others
.metadata/

1
cli/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
Cargo.lock

View file

@ -55,7 +55,8 @@ impl Parts {
part: &'a mailparse::ParsedMail<'a>, part: &'a mailparse::ParsedMail<'a>,
) -> Result<Self> { ) -> Result<Self> {
let mut parts = vec![]; let mut parts = vec![];
if part.subparts.is_empty() && part.get_headers().get_first_value("content-type").is_none() { if part.subparts.is_empty() && part.get_headers().get_first_value("content-type").is_none()
{
let content = part.get_body().unwrap_or_default(); let content = part.get_body().unwrap_or_default();
parts.push(Part::TextPlain(TextPlainPart { content })) parts.push(Part::TextPlain(TextPlainPart { content }))
} else { } else {

View file

@ -134,7 +134,8 @@ impl Print for Cell {
.context(format!(r#"cannot apply colors to cell "{}""#, self.value))?; .context(format!(r#"cannot apply colors to cell "{}""#, self.value))?;
// Writes the colorized cell to stdout // Writes the colorized cell to stdout
write!(writer, "{}", self.value).context(format!(r#"cannot print cell "{}""#, self.value))?; write!(writer, "{}", self.value)
.context(format!(r#"cannot print cell "{}""#, self.value))?;
Ok(writer.reset()?) Ok(writer.reset()?)
} }
} }