Michael Leonhard (01dda9c0) at 04 Mar 07:51
Update TO DO list.
Thanks for this, Hozaka. I implemented this in a much simpler way: 81371ef5. -Michael
Merged. Thank you, Samael! -Michael
I noticed that the URL failed to resolve
❯ nslookup s3.us-east-lz-pao-a.cloud.ovh.us
Server: 1.1.1.1
Address: 1.1.1.1#53
** server can't find s3.us-east-lz-pao-a.cloud.ovh.us: NXDOMAIN
It's indeed what the official document lists, but I believe it's a mistake. CA is at west coast and it resolves
❯ nslookup s3.us-west-lz-lax-a.cloud.ovh.us
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
Name: s3.us-west-lz-lax-a.cloud.ovh.us
Address: 40.160.226.5
Michael Leonhard (32cca4ac) at 04 Mar 06:21
Merge branch 'master' into 'master'
... and 1 more commit
@omertuchfeld Thanks for your comment. I made this change and released:
Michael Leonhard (0e11921c) at 10 Feb 03:29
Implement AsRef<Path> on &TempFile not TempFile, to eliminate...
Michael Leonhard (ea14c916) at 10 Feb 03:29
Implement AsRef<Path> on &TempFile not TempFile, to eliminate...
Michael Leonhard (f46c0351) at 10 Feb 03:29
Implement AsRef<Path> on &TempFile not TempFile, to eliminate...
... and 1 more commit
Perhaps it would be better to have:
impl AsRef<Path> for &TempDir {
fn as_ref(&self) -> &Path {
self.path()
}
}
Rather than:
impl AsRef<Path> for TempDir {
fn as_ref(&self) -> &Path {
self.path()
}
}
This way users will not be able to move, e.g.:
Diagnostics:
1. the trait bound `TempDir: std::convert::AsRef<std::path::Path>` is not satisfied
the trait `std::convert::AsRef<std::path::Path>` is not implemented for `TempDir` [E0277]
2. required by a bound introduced by this call [E0277]
3. consider borrowing here: `&` [E0277]
This leads to a rather unfortunate subtle footgun:
use std::process::Command;
fn main() {
// Works
{
let temp_dir = temp_dir::TempDir::with_prefix("foo").unwrap();
Command::new("ls").current_dir(&temp_dir).status().expect("example 1");
}
// Doesn't work
{
let temp_dir = temp_dir::TempDir::with_prefix("foo").unwrap();
Command::new("ls").current_dir(temp_dir).status().expect("example 2");
}
println!("Hello, world!");
}
thread 'main' (1162815) panicked at src/main.rs:13:59:
example 2: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
temp_dir gets dropped by current_dir as it's moved
I noticed that the URL failed to resolve
❯ nslookup s3.us-east-lz-pao-a.cloud.ovh.us
Server: 1.1.1.1
Address: 1.1.1.1#53
** server can't find s3.us-east-lz-pao-a.cloud.ovh.us: NXDOMAIN
It's indeed what the official document lists, but I believe it's a mistake. CA is at west coast and it resolves
❯ nslookup s3.us-west-lz-lax-a.cloud.ovh.us
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
Name: s3.us-west-lz-lax-a.cloud.ovh.us
Address: 40.160.226.5
Michael Leonhard (f9003d77) at 04 Jan 06:45
encode_pem
Michael Leonhard (d4c44ecc) at 24 Nov 08:07
measure_chacha20_detailed() benchmark
Michael Leonhard (d0379290) at 24 Nov 08:05
Generate multiple ChaCha20 blocks at a time, to support neon/avx co...
... and 2 more commits
No, thank you!