这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented May 18, 2022

No description provided.

Date:      Wed May 18 06:34:17 2022 +0200
Copy link
Owner

@LesnyRumcajs LesnyRumcajs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! I was using it only with this :)

src/bin/wake.rs Outdated
fn main() {
let args = CmdArgs::parse();
if let Some(m) = args.mac {
let mut sep: char = '/';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you could shorten it to something along the lines of let sep = m.chars().find(|ch| ch == ':' || ch == '-').unwrap_or('/');. What do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! sure. To be honest, this is not the best solution.
Didn't know about the wolwaker... :-)

@ghost
Copy link
Author

ghost commented May 24, 2022

ok changed as you suggested

Copy link
Owner

@LesnyRumcajs LesnyRumcajs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@LesnyRumcajs LesnyRumcajs merged commit 7c79206 into LesnyRumcajs:master May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant