Skip to content

Commit 7bb1353

Browse files
hzlinyiyu-neteasekxxt
authored andcommitted
chore: make clippy happy
1 parent 0b7316c commit 7bb1353

File tree

5 files changed

+66
-68
lines changed

5 files changed

+66
-68
lines changed

.cargo/config.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[target.x86_64-apple-darwin]
2+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
3+
4+
[target.aarch64-apple-darwin]
5+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]

Cargo.lock

+58-59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-6
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ lto = true
3838
strip = true
3939
codegen-units = 1
4040

41-
[target.x86_64-apple-darwin]
42-
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
43-
44-
[target.aarch64-apple-darwin]
45-
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
46-
4741

4842
[dependencies]
4943
chrono = { version = "0.4.23", default-features = false, features = [

src/auth.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ impl<'a> AuthOptionsBuilder<'a> {
9595
/// # Arguments
9696
///
9797
/// * `endpoint` - Endpoint of the service.
98-
/// It is usually a https url if you are using [`crate::synthesizer::RestSynthesizer`] or
99-
/// a wss url if you are using [`crate::synthesizer::WebsocketSynthesizer`].
98+
/// It is usually a https url if you are using [`crate::synthesizer::RestSynthesizer`] or
99+
/// a wss url if you are using [`crate::synthesizer::WebsocketSynthesizer`].
100100
pub fn new(endpoint: impl Into<Cow<'a, str>>) -> Self {
101101
Self {
102102
endpoint: endpoint.into(),

src/cli/parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub(super) fn parse_header(
1010
.find('=')
1111
.ok_or_else(|| format!("invalid KEY=value: no `=` found in `{s}`"))?;
1212
Ok((
13-
HeaderName::from_bytes(s[..pos].as_bytes())?,
13+
HeaderName::from_bytes(&s.as_bytes()[..pos])?,
1414
HeaderValue::from_str(&s[pos + 1..])?,
1515
))
1616
}

0 commit comments

Comments
 (0)