Skip to content
Snippets Groups Projects

Optimize, start porting coreutils (WIP), minor cleanup in codestyle.

Merged Jeremy Soller requested to merge ticki:master into master

Created by: ticki

Merge request reports

Approval is optional

Merged by avatar (Mar 13, 2025 9:04pm UTC)

Merge details

  • Changes merged into master with 90b7a31d.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
23 23
24 24 /// Get the host from a string (ip)
25 25 pub fn parse_host(string: &str) -> &str {
26 // TODO: Username/Password syntax
27 let pos = match string.find(':') {
26 let pos = match string.find(|c| c == ':' || c == '/') {
  • Created by: stratact

    How cool, I didn't know you could use a closure inside .find() for multiple checks.

    Thanks for backing me up. :smile:

  • Created by: ticki

    Merge conflict fixed.

  • Please register or sign in to reply
    Loading