File tree 4 files changed +12
-3
lines changed
4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 45
45
linting :
46
46
runs-on : ubuntu-latest
47
47
env :
48
- TOOLCHAIN : stable
48
+ TOOLCHAIN : 1.63.0
49
49
steps :
50
50
- name : Checkout source code
51
51
uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ /target
2
+ Cargo.lock
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -e
3
3
set -x
4
+
5
+ RUSTC_MINOR_VERSION=$( rustc --version | awk ' { split($2,a,"."); print a[2] }' )
6
+
7
+ # Starting with version 1.39.0, the `tokio` crate has an MSRV of rustc 1.70.0
8
+ [ " $RUSTC_MINOR_VERSION " -lt 70 ] && cargo update -p tokio --precise " 1.38.1" --verbose
9
+ [ " $RUSTC_MINOR_VERSION " -lt 70 ] && cargo update -p tokio-util --precise " 0.7.10" --verbose
10
+
4
11
RUSTFLAGS=' -D warnings' cargo clippy -- \
5
12
` # We use this for sat groupings` \
6
13
-A clippy::inconsistent-digit-grouping \
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl HumanReadableName {
42
42
if user. is_empty ( ) || domain. is_empty ( ) {
43
43
return Err ( ( ) ) ;
44
44
}
45
- if !str_chars_allowed ( & user) || !str_chars_allowed ( & domain) {
45
+ if !str_chars_allowed ( user) || !str_chars_allowed ( domain) {
46
46
return Err ( ( ) ) ;
47
47
}
48
48
let mut contents = [ 0 ; 255 - REQUIRED_EXTRA_LEN ] ;
@@ -60,7 +60,7 @@ impl HumanReadableName {
60
60
/// If `user` includes the standard BIP 353 ₿ prefix it is automatically removed as required by
61
61
/// BIP 353.
62
62
pub fn from_encoded ( encoded : & str ) -> Result < HumanReadableName , ( ) > {
63
- if let Some ( ( user, domain) ) = encoded. strip_prefix ( '₿' ) . unwrap_or ( encoded) . split_once ( "@" )
63
+ if let Some ( ( user, domain) ) = encoded. strip_prefix ( '₿' ) . unwrap_or ( encoded) . split_once ( '@' )
64
64
{
65
65
Self :: new ( user, domain)
66
66
} else {
You can’t perform that action at this time.
0 commit comments