Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.
This repository was archived by the owner on May 13, 2024. It is now read-only.

Swift4 compile warnings #118

@chadham

Description

@chadham

1027 var path = CFURLCopyPath(req.url! as CFURL!) as String
//Using '!' in this location is deprecated and will be removed in a future release; consider changing this to '?' instead

1061 CFStreamCreatePairWithSocketToHost(nil, addr[0] as CFString!, UInt32(Int(addr[1])!), &readStream, &writeStream);
//; is not needed //Using '!' in this location is deprecated and will be removed in a future release; consider changing this to '?' instead

1147 key = trim(line.substring(to: r.lowerBound))
// 'substring(to:)' is deprecated: Please use String slicing subscript with a 'partial range upto' operator.

1148 value = trim(line.substring(from: r.upperBound))
//'substring(from:)' is deprecated: Please use String slicing subscript with a 'partial range from' operator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions