Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
029789b9
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
029789b9
编写于
12月 13, 2014
作者:
J
Jorge Aparicio
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Get rid of all the remaining uses of `refN`/`valN`/`mutN`/`TupleN`
上级
17a9c276
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
6 deletion
+5
-6
src/etc/unicode.py
src/etc/unicode.py
+2
-3
src/libstd/sys/windows/process.rs
src/libstd/sys/windows/process.rs
+2
-2
src/test/bench/shootout-fasta.rs
src/test/bench/shootout-fasta.rs
+1
-1
未找到文件。
src/etc/unicode.py
浏览文件 @
029789b9
...
...
@@ -348,7 +348,6 @@ def emit_conversions_module(f, lowerupper, upperlower):
f
.
write
(
"""
use core::cmp::Ordering::{Equal, Less, Greater};
use core::slice::SlicePrelude;
use core::tuple::Tuple2;
use core::option::Option;
use core::option::Option::{Some, None};
use core::slice;
...
...
@@ -356,14 +355,14 @@ def emit_conversions_module(f, lowerupper, upperlower):
pub fn to_lower(c: char) -> char {
match bsearch_case_table(c, LuLl_table) {
None => c,
Some(index) => LuLl_table[index].
val1()
Some(index) => LuLl_table[index].
1
}
}
pub fn to_upper(c: char) -> char {
match bsearch_case_table(c, LlLu_table) {
None => c,
Some(index) => LlLu_table[index].
val1()
Some(index) => LlLu_table[index].
1
}
}
...
...
src/libstd/sys/windows/process.rs
浏览文件 @
029789b9
...
...
@@ -430,8 +430,8 @@ fn with_envp<K, V, T, F>(env: Option<&collections::HashMap<K, V>>, cb: F) -> T w
for
pair
in
env
.iter
()
{
let
kv
=
format!
(
"{}={}"
,
pair
.
ref0
()
.container_as_str
()
.unwrap
(),
pair
.
ref1
()
.container_as_str
()
.unwrap
());
pair
.
0
.container_as_str
()
.unwrap
(),
pair
.
1
.container_as_str
()
.unwrap
());
blk
.extend
(
kv
.utf16_units
());
blk
.push
(
0
);
}
...
...
src/test/bench/shootout-fasta.rs
浏览文件 @
029789b9
...
...
@@ -78,7 +78,7 @@ impl<'a> Iterator<u8> for AAGen<'a> {
fn
next
(
&
mut
self
)
->
Option
<
u8
>
{
let
r
=
self
.rng
.gen
();
self
.data
.iter
()
.skip_while
(|
pc
|
pc
.
val0
()
<
r
)
.skip_while
(|
pc
|
pc
.
0
<
r
)
.map
(|
&
(
_
,
c
)|
c
)
.next
()
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录