Comments (7)
I'm just curious: Why are you rewriting every to_string()
with the format!
macro? Is this considered to be a best practice?
from lettre.
The reason I did it was because to_string() no longer wanted to compile. Maybe it was some kind of glitch and it works again, or maybe it was just removed from Prelude and should have been imported explicitly.
And yes, AFAIK, format! is the way to go.
to_string() is implemented as (a variation of) format! - http://doc.rust-lang.org/src/collections/string.rs.html#937-946
from lettre.
Thanks for that information @ArtemGr
from lettre.
NB, for strings format! is temporarily slower than String::from_str, rust-lang/rust#20400
from lettre.
FYI, an updated patch landed at https://github.com/ArtemGr/rust-smtp/commit/aaf2147117da119fba87986e10ea012d9fe6c74c
from lettre.
Merged, thank you. I am updating the tests.
from lettre.
Cool! )
BTW, I'm not sure if the features
vector will be formatted correctly, had to use the {:?}
as a quick fix because it wouldn't format with {}
for some reason.
from lettre.
Related Issues (20)
- Is there a plan to support socks5 agents? HOT 1
- Derive serde Traits for key objects HOT 2
- Using rustls-tls feature still depends on 'openssl-sys' HOT 2
- Multiple Errors Deploying an SMTP Relay HOT 4
- How to correctly include an attachment HOT 1
- Sending email leads to an os error (invalid token) HOT 6
- Emails with attachments are not sent on windows HOT 1
- RUSTSEC-2022-0093: Double Public Key Signing Function Oracle Attack on `ed25519-dalek`
- Build a transport and provide credentials later HOT 4
- UnknownIssuer error after commit 69e5974 with rustls HOT 5
- Ahash Version HOT 6
- When sending file attachments via MultiPart I get the encoded message as text... HOT 1
- cyclic package dependency: package `ahash v0.8.6`
- AsyncTransport send() indefinitely waits for network up HOT 1
- RUSTSEC-2023-0071: Marvin Attack: potential key recovery through timing sidechannels
- Bug in DKIM body-hash computation with mimebodies
- PKCS#8 support for DKIM
- Please consider using `relaxed/relaxed` for default `DkimConfig` HOT 1
- Add multiple attachments to email message; accept Vec<SinglePart>
- The URL format for the SMTP transport doesn't decode the percent encoded username and password
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lettre.