//
//  Network.swift
//  SwinjectSimpleExample
//
//  Created by Yoichi Tagaya on 8/10/15.
//  Copyright © 2015 Swinject Contributors. All rights reserved.
//

import Foundation
import Alamofire

struct Network : Networking {
    func request(response: NSData? -> ()) {
        Alamofire.request(.GET, OpenWeatherMap.url, parameters: OpenWeatherMap.parameters)
            .response { _, _, data, _ in
                response(data)
            }
    }
}

//
//  Network.swift
//  SwinjectSimpleExample
//
//  Created by Yoichi Tagaya on 8/10/15.
//  Copyright © 2015 Swinject Contributors. All rights reserved.
//

import Foundation
import Alamofire

struct Network : Networking {
    func request(response: NSData? -> ()) {
        Alamofire.request(.GET, OpenWeatherMap.url, parameters: OpenWeatherMap.parameters)
            .response { _, _, data, error in
                response(data)
            }
    }
}

--- 
+++ 
@@ -12,7 +12,7 @@
 struct Network : Networking {
     func request(response: NSData? -> ()) {
         Alamofire.request(.GET, OpenWeatherMap.url, parameters: OpenWeatherMap.parameters)
-            .response { _, _, data, error in
+            .response { _, _, data, _ in
                 response(data)
             }
     }
Replace an unused parameter with _.
