Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3361902
D9471.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9471.diff
View Options
diff --git a/keyserver/addons/rust-node-addon/build.rs b/keyserver/addons/rust-node-addon/build.rs
--- a/keyserver/addons/rust-node-addon/build.rs
+++ b/keyserver/addons/rust-node-addon/build.rs
@@ -13,8 +13,7 @@
println!("cargo:rerun-if-changed={}", VERSIONS_JS_PATH);
let js_path = Path::new(VERSIONS_JS_PATH);
- let content =
- fs::read_to_string(&js_path).expect("Failed to read version.js");
+ let content = fs::read_to_string(js_path).expect("Failed to read version.js");
let version_line = content
.lines()
@@ -28,7 +27,7 @@
// semicolon.
let re = Regex::new(r"webAndKeyserverCodeVersion\s*=\s*(\d+);").unwrap();
let version: u64 = re
- .captures(&version_line)
+ .captures(version_line)
.and_then(|cap| cap.get(1))
.map_or_else(
|| panic!("Failed to capture version number"),
@@ -43,7 +42,7 @@
let rust_path = Path::new(&out_dir).join("version.rs");
fs::write(
- &rust_path,
+ rust_path,
format!("pub const CODE_VERSION: u64 = {};", version),
)
.expect("Failed to write version.rs");
diff --git a/keyserver/addons/rust-node-addon/src/identity_client/login.rs b/keyserver/addons/rust-node-addon/src/identity_client/login.rs
--- a/keyserver/addons/rust-node-addon/src/identity_client/login.rs
+++ b/keyserver/addons/rust-node-addon/src/identity_client/login.rs
@@ -32,7 +32,7 @@
let login_start_request = OpaqueLoginStartRequest {
opaque_login_request,
- username: username,
+ username,
device_key_upload: Some(DeviceKeyUpload {
device_key_info: Some(IdentityKeyInfo {
payload: signed_identity_keys_blob.payload,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 8:12 PM (11 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580878
Default Alt Text
D9471.diff (1 KB)
Attached To
Mode
D9471: [keyserver] clippy fixes
Attached
Detach File
Event Timeline
Log In to Comment