mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-25 12:30:22 +00:00
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:
parent
0696f36f05
commit
bed5a3856b
4 changed files with 44 additions and 5 deletions
42
.gitignore
vendored
42
.gitignore
vendored
|
@ -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
1
cli/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Cargo.lock
|
|
@ -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 {
|
||||||
|
|
|
@ -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()?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue