chore(toolchain): update rust-toolchain to 2023-05-03 (#1524)

* chore(toolchain): update rust-toolchain to 2023-05-03

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update workflow yaml

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-05-06 11:34:09 +08:00
committed by GitHub
parent 6fe117d7d5
commit d4f3f617e4
9 changed files with 9 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ impl TryFrom<&str> for StaticUserProvider {
let file = File::open(path).context(IoSnafu)?;
let credential = io::BufReader::new(file)
.lines()
.filter_map(|line| line.ok())
.map_while(std::result::Result::ok)
.filter_map(|line| {
if let Some((k, v)) = line.split_once('=') {
Some((k.to_string(), v.as_bytes().to_vec()))